EventMouseButtonDown EventMouseButtonUp EventMouseMove

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

daves
Home away from home
Home away from home
Posts: 253
Joined: Thu Feb 02, 2006 20:12

EventMouseButtonDown EventMouseButtonUp EventMouseMove

Postby daves » Mon Oct 29, 2007 18:42

There are circumstances where I want to be able to handle these three events within a frame window: EventMouseButtonDown EventMouseButtonUp EventMouseMove

There are other times when I want to allow these to drive the framewindow sizing.

If I have subscribed to these events can I decide within the associated handler(s) to handle the events or not, and if not how can I tell CEGUI to go ahead and do the "framewindow sizing"?

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Tue Oct 30, 2007 09:47

I think with the way events are wired at present, there is no quick way of saying to the system "I have handled this event, do no further processing".

This means that in order to sometimes size and sometimes not to size you would have to enable / disable sizing in your handler before the FrameWindow sizing handler gets called (which, happily in these cases, is after your event subscribers).

So, it's possible, just may not be the cleanest solution you've ever made :)

User avatar
ttom
Just popping in
Just popping in
Posts: 16
Joined: Wed Jan 12, 2005 12:06

Postby ttom » Wed Oct 31, 2007 01:32

Is CrazyEddie come back?

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Wed Oct 31, 2007 09:24

ttom wrote:Is CrazyEddie come back?

I'm just helping out on the forum at the moment :)


Return to “Help”

Who is online

Users browsing this forum: No registered users and 21 guests