Problem with rolled up FrameWindow

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
vinnythetrue
Not too shy to talk
Not too shy to talk
Posts: 21
Joined: Wed Aug 10, 2005 10:29

Problem with rolled up FrameWindow

Postby vinnythetrue » Wed Nov 30, 2005 15:57

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

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Re: Problem with rolled up FrameWindow

Postby lindquist » Wed Nov 30, 2005 17:26

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!

User avatar
vinnythetrue
Not too shy to talk
Not too shy to talk
Posts: 21
Joined: Wed Aug 10, 2005 10:29

Re: Problem with rolled up FrameWindow

Postby vinnythetrue » Mon Dec 05, 2005 10:38

hum, well, quite weird yes :(

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

User avatar
martignasse
Just can't stay away
Just can't stay away
Posts: 227
Joined: Thu Apr 14, 2005 08:10
Location: Lyon, FRANCE

Re: Problem with rolled up FrameWindow

Postby martignasse » Mon Dec 05, 2005 11:11

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.

User avatar
martignasse
Just can't stay away
Just can't stay away
Posts: 227
Joined: Thu Apr 14, 2005 08:10
Location: Lyon, FRANCE

Re: Problem with rolled up FrameWindow

Postby martignasse » Mon Dec 05, 2005 12:14

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.

User avatar
vinnythetrue
Not too shy to talk
Not too shy to talk
Posts: 21
Joined: Wed Aug 10, 2005 10:29

Re: Problem with rolled up FrameWindow

Postby vinnythetrue » Mon Dec 05, 2005 15:17

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 :)


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 14 guests