Autor Beitrag
D. Annies
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: Mo 22.11.04 17:29 
Hi, Delpher!

(Wie) kann ich nach memo1.loadfromfile (..) sofort an das Ende des Memos
gelangen?

Danke für eure Hilfe!

Detlef Annies
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: Mo 22.11.04 17:30 
ausblenden Delphi-Quelltext
1:
Memo1.SelStart:=Length(Memo1.Text);					

Wenn er nicht runterscrollt:
ausblenden Delphi-Quelltext
1:
SendMessage(Memo1.Handle,WM_VSCROLL,SB_BOTTOM,0);					


Gruß,
Jörg

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Mo 22.11.04 17:43 
.Chef hat folgendes geschrieben:
ausblenden Delphi-Quelltext
1:
Memo1.SelStart:=Length(Memo1.Text);					

Wenn er nicht runterscrollt:


... sollte ein zusätzliches SetFocus das Problem lösen :roll: ;)

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)
D. Annies Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: Mo 22.11.04 20:21 
Danke, ihr zwei,

sendmessage(...) klappte!

Grüße von Detlef Annies aus HL