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/)
-   -   Delphi String Grid in Zelle klicken (https://www.delphipraxis.net/93845-string-grid-zelle-klicken.html)

sebastian_buege 12. Jun 2007 10:19


String Grid in Zelle klicken
 
Hallo ich habe ein StrinGrid und möchte nun bestimmte informationen zu einer Zelle abfragen. aus diesem grund muss ich wissen in welche zelle ich geklickt habe.


Kann mir da jemand helfen ?

CCRDude 12. Jun 2007 10:26

Re: String Grid in Zelle klicken
 
Aus Deiner Problembeschreibung wird nicht ganz klar, wie wichtig der Klick dabei ist. Wenn die Aktion eine Folge des Klicks sein soll, vielleicht OnSelectCell? Ansonsten die Eigenschaften Col und Row (da ist die Hilfe zugegeben sehr arm, ich find die dort nichtmal).

Klaus01 12. Jun 2007 10:27

Re: String Grid in Zelle klicken
 
Guten Morgen,

vielleicht ist es das was Du suchst:

Zitat:

Occurs before a cell in the grid is selected.

type
TSelectCellEvent = procedure (Sender: TObject; ACol, ARow: Longint; var CanSelect: Boolean) of object;
property OnSelectCell: TSelectCellEvent;

Description

Write an OnSelectCell event handler to specify whether any particular cell in the grid can be selected. The Col and Row parameters indicate the column and row indexes of the cell that is about to be selected. Set the CanSelect parameter to False to prevent the cell being selected.
Grüße
Klaus

sebastian_buege 12. Jun 2007 10:29

Re: String Grid in Zelle klicken
 
Vielen Dank für die Schnelle Hilfe hab sdie ganze zeit mit onclick versucuht onselect cell ist natürlcih das was ich brauche .
danke


Alle Zeitangaben in WEZ +1. Es ist jetzt 12:06 Uhr.

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