Autor Beitrag
nimoee
Hält's aus hier
Beiträge: 7

w2k
D5
BeitragVerfasst: So 21.09.03 14:48 
hallo,

wieder eine ganz primitive Frage. Ichs kriegs aber einfach nicht raus.
Ich hab ein Editfeld.
Wie kann ich feststellen, wo sich der Cursor im Moment befindet, bzw den Cursor auf eine bestimmte Position setzen?

nimoee
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: So 21.09.03 16:36 
Wenn kein Text markiert ist, so gib SelStart die aktuelle Cursorposition im Text an. Und kann damit auch gesetzt werden.

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
JoelH
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 806
Erhaltene Danke: 17

Win10
Delphi Alexandria 11.2 Patch 1
BeitragVerfasst: So 21.09.03 17:26 
Titel: hmm,
in einer Memo/Rich Editbox kommst du via CaretPos an die x/y Koordinate.

_________________
mfg. Joel
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Mo 22.09.03 08:19 
Titel: Re: hmm,
JoelH hat folgendes geschrieben:
in einer Memo/Rich Editbox kommst du via CaretPos an die x/y Koordinate.

Dazu steht auch etwas in der FAQ.

Gruß
Tino