Вниз
Скачать: 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.44 MB
Время: 0.04 c
1-1086536511
Mishenka
2004-06-06 19:41
2004.06.20
Trim


9-1077482489
Bek
2004-02-22 23:41
2004.06.20
Кто что знает про свет в Opengl?


1-1086324889
Алекс
2004-06-04 08:54
2004.06.20
народ программа вылетает - непонятно какая ошибка,помогите разобр


1-1086253320
Сергей_И
2004-06-03 13:02
2004.06.20
Помогите создать в гриде чекбокс


3-1085706544
Slavik_v
2004-05-28 05:09
2004.06.20
Интеграция Delphi7 b Excel




   Наверх