Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.01.20;
Скачать: 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 вся ветка

Текущий архив: 2003.01.20;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.012 c
7-62870
cecist
2002-11-05 16:52
2003.01.20
Logon в Windows2000


3-62378
Иксик
2002-12-24 11:46
2003.01.20
Кодировка в БД


3-62344
alxx
2002-12-27 13:33
2003.01.20
Invalid Request BLR


7-62865
Senator
2002-11-08 14:41
2003.01.20
список файлов


1-62596
Anatoly P
2003-01-08 10:29
2003.01.20
Многоязычное приложение