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 StringGrid Eingabe einer Zelle sofort verarbeiten/auswerten (https://www.delphipraxis.net/22962-stringgrid-eingabe-einer-zelle-sofort-verarbeiten-auswerten.html)

Shiva 26. Mai 2004 22:16


StringGrid Eingabe einer Zelle sofort verarbeiten/auswerten
 
moinsen,

ich hab folgende problemstellung und weiss irgendwie atm net richtig weiter. und zwar hab ich eine tabelle in form eines stringgrids und möchte nun die eingaben, die der user in den jeweiligen zellen macht sofort nach dem beenden dieser (der jeweiligen eingabe pro zelle) verarbeiten. kann mir jemande einen tip geben wie ich das am dümmsten machen kann? welches ereignis sich da am besten anbietet? ...

vielen dank schonmal vorab

so far so long

mfg shiva

P.S: ich hoff ich hab mich verständlich ausgedrückt und bin hier richtig gelandet

alcaeus 27. Mai 2004 05:51

Re: StringGrid Eingabe einer Zelle sofort verarbeiten/auswer
 
Also, das richtige Ereignis ist OnSetEditText, dazu sagt meine Hilfe folgendes:
Zitat:

Zitat von Delphi OH
Occurs when the user edits the value of a cell.

Delphi syntax:
property OnSetEditText: TSetEditEvent;

Description
Write an OnSetEditText event handler to perform any special processing of the text edited by the user in an in-place editor. For example, use the OnSetEditText event to retrieve and store the value of a cell so that it can be displayed in an OnDrawCell event handler. OnSetEditText occurs every time the user changes the text.
The Value parameter is the new value for the cell specified by the ACol and ARow parameters.
OnSetEditText does not occur unless the Options property includes goEditing.

BTW: Das richtige Forum wäre VCL-Komponenten gewesen, aber egal...;-)
Und zum Abschluss, willkommen in der DP :dp: :hi:

DP-Maintenance 27. Mai 2004 06:19

DP-Maintenance
 
Dieses Thema wurde von "Sharky" von "Object-Pascal / Delphi-Language" nach "VCL-Komponenten und Controls" verschoben.
Willkommen in der Delphi-PRAXIS.
Ich verschiebe die Frage mal nach hier ;-)


Alle Zeitangaben in WEZ +1. Es ist jetzt 14:00 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