Page 1 of 1

Problem with rolled up FrameWindow

Posted: Wed Nov 30, 2005 15:57
by vinnythetrue
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

Re: Problem with rolled up FrameWindow

Posted: Wed Nov 30, 2005 17:26
by lindquist
This sounds weird.
Rollup should be enabled by default. Works like a charm here :shock:

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!

Re: Problem with rolled up FrameWindow

Posted: Mon Dec 05, 2005 10:38
by vinnythetrue
hum, well, quite weird yes :(

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

Re: Problem with rolled up FrameWindow

Posted: Mon Dec 05, 2005 11:11
by martignasse
hi,

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.
Did you enable it by methde or by properties ?

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.

Re: Problem with rolled up FrameWindow

Posted: Mon Dec 05, 2005 12:14
by martignasse
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.

Re: Problem with rolled up FrameWindow

Posted: Mon Dec 05, 2005 15:17
by vinnythetrue
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 :evil:

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


Thanks to all of you for your help :)