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
How to move the child window with the vertical scrollbar?
Moderators: CEGUI MVP, CEGUI Team
- scriptkid
- Home away from home
- Posts: 1178
- Joined: Wed Jan 12, 2005 12:06
- Location: The Hague, The Netherlands
- Contact:
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
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
Check out my released snake game using Cegui!
Who is online
Users browsing this forum: No registered users and 9 guests