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

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 a

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

2020-05-28 Thread Damon H. (TheDcoder)
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 se