Вниз
Скачать: 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.019 c
1-1086258035
nitro
2004-06-03 14:20
2004.06.20
Сохранение в файл jpg все что находится в Groupbox ?


14-1086182913
XYZ
2004-06-02 17:28
2004.06.20
Работа со сканером штрих-кодов


3-1085599919
DIS
2004-05-26 23:31
2004.06.20
сортировка в столбце DbGrid


1-1086675201
ancara
2004-06-08 10:13
2004.06.20
ошибка Integer overflow


4-1084778473
Dmitrij_K
2004-05-17 11:21
2004.06.20
значки в listview




   Наверх