Hi,
How to programmatically go to the last line of a TMultiGet control (GET...MEMO) ?
With the keyboard I had to click on the control to give it focus then press Ctrl+End
TIA
GET ... MEMO How to display last line?
- Antonio Linares
- Site Admin
- Posts: 42520
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 75 times
- Contact:
Re: GET ... MEMO How to display last line?
Dear Hua,
Using VB they solve it this way:
Text1.SelStart = len(Text1.Text)
Have you tried oMultiGet:GoBottom() ?
Also you could try oMultiGet:SetPos( Len( oMultiGet:cText ), Len( oMultiGet:cText ) )
Using VB they solve it this way:
Text1.SelStart = len(Text1.Text)
Have you tried oMultiGet:GoBottom() ?
Also you could try oMultiGet:SetPos( Len( oMultiGet:cText ), Len( oMultiGet:cText ) )
- Enrico Maria Giordano
- Posts: 8753
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 4 times
- Contact:
Re: GET ... MEMO How to display last line?
I'm using this modified method (you can change it to a function):
Code: Select all | Expand
METHOD GoBottom() CLASS TMultiGet
LOCAL nPos := LEN( ::VarGet() ) + 1
::SendMsg( EM_SETSEL, nPos, nPos )
::SendMsg( EM_LINESCROLL, 0, ::SendMsg( EM_GETLINECOUNT ) )
RETURN NIL