Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   FMX StringGrid mit ComboBox (https://www.delphipraxis.net/202368-fmx-stringgrid-mit-combobox.html)

JaniJPK 27. Okt 2019 12:23

FMX StringGrid mit ComboBox
 
Hallo,

ich versuche in einer Spalte eines StringGrid ein Dopdown einzufügen. Wie ich recherchiert habe funktioniert dies scheinbar nur mit einer ComboBox, die über die markierte Zelle gesetzt wird und das ausgewählte Element in die Zelle geschrieben wird.

Bei nachfolgendem Code
Delphi-Quellcode:
procedure TForm1.StringGrid1SelectCell(Sender: TObject; const ACol,
  ARow: Integer; var CanSelect: Boolean);
var
  CRect:TRect;
begin
  selectedflag:=True;
  selectedrow:=ARow;
  if(ACol=3)then begin
    CRect:=StringGrid1.CellRect(ACol, ARow);
erhalte ich die Meldung [dcc64 Error] Unit1.pas(193): E2003 Undeclared identifier: 'CellRect'

Komplettes Programm ist unter https://github.com/JPsWebsite/Zeiterfassung zu finden


Alle Zeitangaben in WEZ +1. Es ist jetzt 00:46 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz