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

Stringgrid & Combobox   Найти похожие ветки 

 
tytus ©   (2003-01-09 20:52) [0]

Добрый вечер. Подскажите как по одному клику на ячейке stringgrid в ней (по ее размерам) появлялся combobox?


 
MBo ©   (2003-01-10 06:32) [1]

FAQ


 
Groove ©   (2003-01-10 14:18) [2]

я делал так,
бросал на форму StringGrid и Combobox
Combobox.Visible:=false;

затем в обработчиках писал

procedure TForm1.StringGrid1SelectCell(Sender: TObject; ACol,
ARow: Integer; var CanSelect: Boolean);
var
r:TRect;
begin
r:=StringGrid1.CellRect(ACol,ARow);
ComboBox1.Visible:=true;
ComboBox1.Top:=r.Top+StringGrid1.Top;
ComboBox1.Left:=r.Left+StringGrid1.Left;
ComboBox1.Height:=r.Bottom-r.Top;
ComboBox1.Width:=r.Right-r.Left;
end;

procedure TForm1.StringGrid1Exit(Sender: TObject);
begin
ComboBox1.Visible:=false;
end;




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

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



Память: 0.45 MB
Время: 0.012 c
1-62533
Young_01
2003-01-10 21:10
2003.01.20
Работа с графикой


1-62623
Misc
2003-01-09 14:22
2003.01.20
Мастера, HEEEELP


3-62445
TTCustomDelphiMaster
2002-12-26 14:08
2003.01.20
DBGrid.OnSelect


3-62431
Kesha
2002-12-26 08:19
2003.01.20
Перенос данных с Exsel в


4-62945
Maniak
2002-12-06 15:49
2003.01.20
Как с помощью WinAPI узнать имя компьютера?




   Наверх