http://www.vado.org -- Videogames are a conduit for the soul. They expand our lives, channel our imagination, test our skillz. Games exist as a channel for the boundless energy of people all over the world. -MegaTokyo
Delphi:
1
2
3
| Memo1.Lines.Add('test'); Memo1.SelStart := 0; Memo1.Perform(EM_SCROLLCARET, 0, 0); |
We adore chaos because we like to restore order - M.C. Escher
Als ik op deze manier een regel toevoeg:
wordt er niet naar beneden ge-scroll-ed
code:
1
2
3
| Memo1.Lines.BeginUpdate;
Memo1.Lines.Append('Test');
Memo1.Lines.EndUpdate; |
wordt er niet naar beneden ge-scroll-ed
[ Voor 10% gewijzigd door jelmervos op 13-12-2002 19:42 ]
"The shell stopped unexpectedly and Explorer.exe was restarted."
Heeft als nadeel dat de cursor steeds op de eerste positie wordt gezet.LordLarry schreef op 13 December 2002 @ 19:42:
Delphi:
1 2 3 Memo1.Lines.Add('test'); Memo1.SelStart := 0; Memo1.Perform(EM_SCROLLCARET, 0, 0);
Misschien voor de topicstarter niet echt een nadeel.
"The shell stopped unexpectedly and Explorer.exe was restarted."
Delphi, dank je wel. Precies wat ik nodig had.
Als ik met Update & Append werk dan scrolt ie niet naar beneden.
Als ik met Update & Append werk dan scrolt ie niet naar beneden.
http://www.vado.org -- Videogames are a conduit for the soul. They expand our lives, channel our imagination, test our skillz. Games exist as a channel for the boundless energy of people all over the world. -MegaTokyo
BeginUpdate en EndUpdate zorgen er tevens voor dat de bewerkingen op je edit ook nog eens sneller gaan.
"The shell stopped unexpectedly and Explorer.exe was restarted."
Pagina: 1