Autor Beitrag
Kay E.
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 118



BeitragVerfasst: Di 01.02.11 15:12 
Hallo zusammen!

Ich benutze ein TButtonedEdit mit einem Button auf der rechten Seite als Auswahlmöglichkeit des Speicherorts eines Logfiles. In dem Feld soll immer der gesamte Pfad angezeigt werden, allerdings stört, dass immer der Anfang des Pfads zu sehen ist (also zum Beispiel c:\temp\...), es wäre aber wünschenswert, wenn der letzte Teil des Pfades sichtbar wäre (also zum Beispiel blablubb\Logfile.txt). Wie gehe ich das denn an, dass ich die textposition innerhalb eines Edits ändere?

Grüße Kay
bummi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1248
Erhaltene Danke: 187

XP - Server 2008R2
D2 - Delphi XE
BeitragVerfasst: Di 01.02.11 15:17 
ausblenden Delphi-Quelltext
1:
ButtonedEdit1.SelStart := Length(ButtonedEdit1.Text);					

_________________
Das Problem liegt üblicherweise zwischen den Ohren H₂♂
DRY DRY KISS
Kay E. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 118



BeitragVerfasst: Di 01.02.11 15:33 
Oh cool, die Funktion kannte ich noch gar nicht. Wieder was gelernt, danke! :)

Grüße Kay