Autor Beitrag
Grendel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 443

Gentoo Linux, MacOS X, Win 2000
D5 Ent, D7 Ent, Lazarus, Anjuta, MonoDevelop
BeitragVerfasst: Do 04.08.05 12:42 
Selam zusammen!

Ich hätte da gerne mal ein Problem. Und zwar kann man mit SelStart und SelLength den Cursor in einem Editfeld platzieren und einen bestimmten Bereich selektieren.
Das Problem ist allerdings, daß der Cursor immer am Ende der Selektion steht.
Ich hab auch schon versucht, mit einer negativen SelLength zu arbeiten aber auch dann steht der Cursor am Ende.

Wie also kann ich es hinbekommen, daß der Cursor vor der Selektion steht?
Irgendjemand eine Idee?

Falls es keine Möglichkeit gibt muss ich wohl die Selektierung per gefaktem "Shift + Cursor-links" Klick setzen. Aber elegant finde ich das nicht gerade.

Bin für alle Anregungen und dumme Ideen offen :)

Bis neulich ...
rochus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 416

Win XP Prof, Fedora Core 4, SuSE 7.0
D7 Ent, D2005 Pers
BeitragVerfasst: Do 04.08.05 14:03 
probier's mal mit SetCaretPos

Gruß
Nicolai

_________________
Im Nachhinein ist man immer ein Schlauch!
"Dream as if you'll live forever, live as if you'll die today!" James Dean
Grendel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 443

Gentoo Linux, MacOS X, Win 2000
D5 Ent, D7 Ent, Lazarus, Anjuta, MonoDevelop
BeitragVerfasst: Do 04.08.05 15:35 
Jo Danke!
Funktioniert zwar noch nicht korrekt, liegt aber wohl an falschen Koordinaten.

Besten Dank!