Scroll EditorGadget

Just starting out? Need help? Post your questions and find answers here.
RobertRioja
User
User
Posts: 71
Joined: Thu May 02, 2019 3:57 am
Location: USA
Contact:

Scroll EditorGadget

Post by RobertRioja »

Is there a way to programmatically scroll an EditorGadget? I have an Editor which has more lines of text than can be seen, so you have to scroll up and down. I want to have a button which will make the last line of text appear by scrolling it into view.
Thanks
User avatar
Bisonte
Addict
Addict
Posts: 1226
Joined: Tue Oct 09, 2007 2:15 am

Re: Scroll EditorGadget

Post by Bisonte »

Last edited by Bisonte on Wed Jun 12, 2019 6:38 am, edited 1 time in total.
PureBasic 6.04 LTS (Windows x86/x64) | Windows10 Pro x64 | Asus TUF X570 Gaming Plus | R9 5900X | 64GB RAM | GeForce RTX 3080 TI iChill X4 | HAF XF Evo | build by vannicom​​
English is not my native language... (I often use DeepL to translate my texts.)
User avatar
Shardik
Addict
Addict
Posts: 1989
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: Scroll EditorGadget

Post by Shardik »

RobertRioja wrote:Is there a way to programmatically scroll an EditorGadget?
You may take a look into this cross-platform example (2nd example) which programmatically adds a line and keeps it visible.
Post Reply