Hello there,
I am using the CEGUI FrameWindow widget, and I want my windows to be able to "titleize" (making the content part not visible, while only the titlebar remains) by double-clicking on the titlebar.
I found some methods in the FrameWindow :
toggleRollup( void );
setRollupEnabled( bool );
and so on...
So I figured out by myself (since the api isn't very helpful on this point) that these methods do what I want. So I enable the rollup on my windows, then bind the doubleclick event to a method that calls the toggle one.
But the only thing that I can see resulting from this call, is that my window is no longer resizable while it should be titleized". The cursor doesn't change anymore when I reach the window borders. Everything goes back to normal when I double-click again...
So, what have I wrong ? Thanks for any help
Problem with rolled up FrameWindow
Moderators: CEGUI MVP, CEGUI Team
- vinnythetrue
- Not too shy to talk
- Posts: 21
- Joined: Wed Aug 10, 2005 10:29
- lindquist
- CEGUI Team (Retired)
- Posts: 770
- Joined: Mon Jan 24, 2005 21:20
- Location: Copenhagen, Denmark
Re: Problem with rolled up FrameWindow
This sounds weird.
Rollup should be enabled by default. Works like a charm here
Edit. From reading your replies to the other posts I think you need to take a closer look at the wiki tutorials or sample code. If you inject mousebutton events properly to CEGUI::System via its injectXXX methods this should really work out of the box!
Rollup should be enabled by default. Works like a charm here

Edit. From reading your replies to the other posts I think you need to take a closer look at the wiki tutorials or sample code. If you inject mousebutton events properly to CEGUI::System via its injectXXX methods this should really work out of the box!
- vinnythetrue
- Not too shy to talk
- Posts: 21
- Joined: Wed Aug 10, 2005 10:29
Re: Problem with rolled up FrameWindow
hum, well, quite weird yes
No one ever met this case ? I'm really stucked here

No one ever met this case ? I'm really stucked here

- martignasse
- Just can't stay away
- Posts: 227
- Joined: Thu Apr 14, 2005 08:10
- Location: Lyon, FRANCE
Re: Problem with rolled up FrameWindow
hi,
I believe you don't need to bind the event manually as the rollup property is pre programmed and just wait you enable it.
Hope it help.
Did you enable it by methde or by properties ?So I figured out by myself (since the api isn't very helpful on this point) that these methods do what I want. So I enable the rollup on my windows, then bind the doubleclick event to a method that calls the toggle one.
I believe you don't need to bind the event manually as the rollup property is pre programmed and just wait you enable it.
Hope it help.
- martignasse
- Just can't stay away
- Posts: 227
- Joined: Thu Apr 14, 2005 08:10
- Location: Lyon, FRANCE
Re: Problem with rolled up FrameWindow
I tested and confirm,
by xml layout, just activate the rollup property and that it, nothing else to do. I assume that's the same behavor by code.
by xml layout, just activate the rollup property and that it, nothing else to do. I assume that's the same behavor by code.
- vinnythetrue
- Not too shy to talk
- Posts: 21
- Joined: Wed Aug 10, 2005 10:29
Re: Problem with rolled up FrameWindow
ok ok, sorry for all this mess ! I found the problem !
In fact, I'm working on some FrameWindowEx, inherited from FrameWindow, and I figured out some code (not mine of course) in this class was redefining the drawself method...without calling the FrameWindow base member
So I added some call to the parent method, and the roll up works nicely
Thanks to all of you for your help
In fact, I'm working on some FrameWindowEx, inherited from FrameWindow, and I figured out some code (not mine of course) in this class was redefining the drawself method...without calling the FrameWindow base member

So I added some call to the parent method, and the roll up works nicely

Thanks to all of you for your help

Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 7 guests