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

button в ячейке стрингрида   Найти похожие ветки 

 
denis24   (2003-10-30 17:56) [0]

Можно ли сделать сабж?


 
Спрашивающий_   (2003-10-31 02:02) [1]

Лови пример с SpeedButton,Button поместить в ячейку проблемы
нет, сложнее с обработкой событий.
procedure TForm1.StringGrid1DrawCell(Sender: TObject; ACol, ARow: Integer;
Rect: TRect; State: TGridDrawState);
begin
If (ACol=1) and (ARow=1) Then
begin
SpeedButton1.SetBounds(Rect.Left,Rect.Top,Rect.Right-Rect.Left,Rect.Bottom-Rect.Top);
end;
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
SpeedButton1.Parent:=StringGrid1;
end;



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

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



Память: 0.44 MB
Время: 0.021 c
3-41096
Devourer
2003-10-22 16:47
2003.11.13
Delphi+Oracle


1-41243
slivka
2003-11-01 00:43
2003.11.13
Помогите пожалуйста чайнику


3-41108
alexay
2003-10-23 09:20
2003.11.13
SQL monitor


14-42025
Ivolg
2003-10-16 19:02
2003.11.13
Эквалазер!!!!


3-40848
MaD
2003-10-21 15:11
2003.11.13
Получить значение Footer в DBGridEh




   Наверх