Page 1 of 1

How to move the child window with the vertical scrollbar?

Posted: Tue May 27, 2008 00:49
by pyhmail
I create a MultilLineEditbox window and add a child window for it,now when I drag the vertical scrollbar of the MultilLineEditbox window, it's child window does not move with the vertical scrollbar. How to let the child window move with the vertical scrollbar?
Thanks

Posted: Tue May 27, 2008 07:49
by scriptkid
Hi,

that's because the MultilineEditBox has special Area's which are used during a scroll, such as "TextAreaVScroll".

So you should either add your child window into its definition (.looknfeel) or listen to its scroll events, and update your child window manually.

For the latter, you need to query for the scrollbars through the EditBox's 'getters' and register to the EventScrollPositionChanged events.

What exactly are you trying to make? This might have been a good question to start with ;)