Re: [Iup-users] Auto-scroll on appending text in IupText

2020-05-28 Thread Milind Gupta
You can use the SCROLLTO attribute after adding text to automatically
scroll so that the last line/character is visible.

On Thu, May 28, 2020 at 2:54 AM Damon H. (TheDcoder) 
wrote:

> Hello everyone! I hope you are all doing well during these unfortunate
> times.
>
> I have a question regarding automatic scrolling in a (multi-line) IupText
> control, I want to make the control scroll downwards (vertically) whenever
> I append text to it so that the end of the text is always visible, I see
> that there is no special attribute that I can set to enable this behaviour,
> so I was wondering what was the best way to implement it?
>
> Thank you for the help in advance!
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] Auto-scroll on appending text in IupText

2020-05-29 Thread Andrew Robinson
rtnVal1 IupSetStrAttribute(handleTxtBox,'VALUE',ptrSomeTxt)
rtnVal2 IupGetAttribute(handleTxtBox,'COUNT',rtnVal1)
IupSetAttribute(handleTxtBox,'CARETPOS',rtnVal2)



What that does is:


1) Append text to your textbox
2) Get the count of bytes in your textbox
3) Set your textbox cursor to point to the byte at count


On 2020-05-28 at 2:36 AM, Damon H. (TheDcoder)  wrote:
Hello everyone! I hope you are all doing well during these unfortunate times.
I have a question regarding automatic scrolling in a (multi-line) IupText
control, I want to make the control scroll downwards (vertically) whenever I
append text to it so that the end of the text is always visible, I see that
there is no special attribute that I can set to enable this behaviour, so I
was wondering what was the best way to implement it?
Thank you for the help in advance!
___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users