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 Wie bekomme ich die Cursorposition in DBEdit heraus (https://www.delphipraxis.net/27682-wie-bekomme-ich-die-cursorposition-dbedit-heraus.html)

Ralf Stehle 13. Aug 2004 23:06


Wie bekomme ich die Cursorposition in DBEdit heraus
 
Ich möchte mit OnKeyPress erzwingen, dass jedes Wort mit einem Großbuchstaben anfängt. Bei einer Neueingabe ist das ja einfach (KEY := KEY + 32 oder so ähnlich), beim Editieren irgendwo in der Mitte muß ich aber wissen, wo der Anwender gerade die Korrekturen eingibt, an welcher Position der Editkomponente also der Cursor steht

Ralf

Sharky 14. Aug 2004 08:06

Re: Wie bekomme ich die Cursorposition in DBEdit heraus
 
Zitat:

Zitat von Ralf Stehle
...an welcher Position der Editkomponente also der Cursor steht...

Hai Ralf,
TEdit.SelStart gibt Dir die Position des Caret wenn kein Text markiert ist.


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