How to move the child window with the vertical scrollbar?

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

pyhmail
Not too shy to talk
Not too shy to talk
Posts: 24
Joined: Thu Apr 03, 2008 02:37

How to move the child window with the vertical scrollbar?

Postby pyhmail » Tue May 27, 2008 00:49

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

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Tue May 27, 2008 07:49

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 ;)
Check out my released snake game using Cegui!


Return to “Help”

Who is online

Users browsing this forum: No registered users and 15 guests