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 TStringgrid (https://www.delphipraxis.net/75198-tstringgrid.html)

smepal 15. Aug 2006 20:07


TStringgrid
 
kann man denn irgendwie verhindern, das noch eine weitere Spalte hinzugefügt oder der editor modus angeschaltet wird?
Ich erstelle gerade eine neue Komponente auf der Basis von TStringgrid.

Klaus01 15. Aug 2006 20:15

Re: TStringgrid
 
Um den EditMode zu verhindern wird Dir
nicht viel anderes übrig bleiben als F2 und Enter
im StringGrid abzufangen.

Ein Auszug aus der Hilfe:
Zitat:

Description

Set EditorMode to True, at runtime, to put the grid in edit mode.
When EditorMode is True, the user can edit cells in the grid.
When the user presses F2, EditorMode is set to True.
When the user presses Enter, the value of EditorMode is toggled.

Note: EditorMode has no effect if the Options property does not include
goEditing or if the Options property includes goAlwaysShowEditor.


Aber vielleicht hat hier noch jemand eine andere Idee.

Grüße
Klaus

fkerber 15. Aug 2006 20:17

Re: TStringgrid
 
Hi!

Soweit ich weiß (und die Note auch sagt) sollte es reichen options.goediting auf false zu setzen, oder?


Ciao, Frederic

Klaus01 15. Aug 2006 20:21

Re: TStringgrid
 
Ja, schaut so aus.

Vielleicht sollte ich die Hilfe Texte auch lesen bevor ich sie poste. ;o)

Grüße
Klaus

smepal 15. Aug 2006 20:32

Re: TStringgrid
 
super danke für die schnelle Hilfe!

//EDIT:

Wie geht das denn?

playlist.options.goediting := false;



wird nicht akzeptiert!

fkerber 15. Aug 2006 20:42

Re: TStringgrid
 
Hi!

Was heißt "nicht akzeptiert"?


Ciao, Frederic

omata 15. Aug 2006 21:16

Re: TStringgrid
 
Das ist eine Menge.

Wert setzen...
Delphi-Quellcode:
playlist.options := playlist.options + [goediting];
Wert entfernen...
Delphi-Quellcode:
playlist.options := playlist.options - [goediting];
Gruss
Thorsten


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