1. How to scroll to the last line of a MleText control
- Posted by Luiz Felipe Franco Belussi <felipe.belussi at gmail.com> Jul 07, 2005
- 1051 views
------=_Part_6085_1809616.1120758042261 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Disposition: inline Greetings from Brazil! I would like to know how can I scroll to the last line of a MleText control= given the fact that I have only it's ID [and I don't have the Vscroll's id]=
2. Re: How to scroll to the last line of a MleText control
- Posted by Al Getz <Xaxo at aol.com> Jul 07, 2005
- 1054 views
Luiz Felipe Franco Belussi wrote: > > > Greetings from Brazil! > > > I would like to know how can I scroll to the last line of a MleText control= > > given the fact that I have only it's ID [and I don't have the Vscroll's id]= > > Hi there Luiz, What part of Brazil you from? In raw Win api, you would do this: SendMessage(hWnd,WM_VSCROLL,SB_BOTTOM,0) Since you're probably using WinLib you can prob use the id: SendMessage(ID,WM_VSCROLL,SB_BOTTOM,0) Note that ID or hWnd is the edit control's, not the scrollbar's. Take care, Al And, good luck with your Euphoria programming! My bumper sticker: "I brake for LED's"
3. Re: How to scroll to the last line of a MleText control
- Posted by euphoric (admin) May 31, 2022
- 813 views
Al Getz <Xaxo at aol.com> said...
Since you're probably using Win32Lib you can prob use the id:
sendMessage(ID,WM_VSCROLL,SB_BOTTOM,0)
Note that ID or hWnd is the edit control's, not the scrollbar's.
This helped me today. Long live Euphoria!
4. Re: How to scroll to the last line of a MleText control
- Posted by petelomax Jun 02, 2022
- 770 views
FYI, the equivalent in IUP/pGUI would be IupSetAttribute(text,"SCROLLTO","9999:9999"),
where you could of course replace the 9999s with [any] precalculated line:column values, and, perhaps,
using utf8_to_utf32() for the column calculation should the target line contain any multi-byte UTF-8.
Pretty sure that doesn't [yet, June 2022] work under pwa/p2js, though.