Вниз
Скачать: CL | DM;

Кнопочка в StringGrid   Найти похожие ветки 

← →
killer ©   (2004-06-04 14:50) [0]

создаю я в яцейке StringGrida программно кнопочку....

with TBitBtn.Create(StringGrid1) do
begin
Parent:=StringGrid1;
BoundsRect:=StringGrid1.CellRect(4, i);
OnMouseUp:=BitBtn1MouseUp;
end;

а как теперь программно поменять в ней например цвет шрифта?

пишу:

for i:=StringGrid1.ControlCount-1 downto 0 do
if (StringGrid1.Controls[I]) is TBitBtn)  then
 StringGrid1.Controls[I].Font.Color:="Цвет";

Вылитает ошибка


← →
killer ©   (2004-06-04 15:58) [1]

Help


← →
Семен Сорокин ©   (2004-06-04 15:59) [2]

TBitBtn(StringGrid1.Controls[I]).Font.Color:="Цвет";


← →
maxz ©   (2004-06-04 16:05) [3]


var
Buttons: array of TButton;
begin
{Создать кнопку}
SetLength(buttons,1);
Buttons[0]:=TButton.Create(StringGrid1);
with Buttons[0] do begin
Parent:=StringGrid1;
BoundsRect:=StringGrid1.CellRect(1, 2);
Caption:="111";
end;
{Поменятьцвет}
Buttons[0]Font.Color=...
end;



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.031 c
14-1086098275
Funnymind
2004-06-01 17:57
2004.06.20
Удаление информации


1-1086188846
Snipers
2004-06-02 19:07
2004.06.20
Наследование форм


14-1086242126
Layner
2004-06-03 09:55
2004.06.20
Активизация Win2003, через прокси можно ли активизировать?


14-1085834559
AlexG
2004-05-29 16:42
2004.06.20
Позволим пользователю упаравлять своей веткой!


4-1084459297
Игорь Н.
2004-05-13 18:41
2004.06.20
Как вызвать окно внимание (attention)?




   Наверх