nanogui: Implicit button grabs


Previous by date: 22 Jun 2006 07:04:27 +0100 Implicit button grabs, Josh
Next by date: 22 Jun 2006 07:04:27 +0100 freetype2 in portrait mode doesnt work, Uwe Klatt
Previous in thread: 22 Jun 2006 07:04:27 +0100 Implicit button grabs, Josh
Next in thread:

Subject: RE: [nanogui] Implicit button grabs
From: Lars ####@####.####
Date: 22 Jun 2006 07:04:27 +0100
Message-Id: <BED4DFA3493ED446A27A9D5846FBC0640DF03F@GRUVAN.abem.local>

Hi,

As I understand it you act on the button down event. This is not the way most GUIs work. Try it on any button in your favourite GUI. Press down on a button, move the pointer out of the button and release the button. Nothing will happen in that case. Act on the button up event instead and hopefully the event handling will work as well.

Hope this helps.

Regards
/ Lasse T.


> -----Original Message-----
> From: Josh ####@####.#### 
> Sent: den 21 juni 2006 00:30
> To: ####@####.####
> Subject: [nanogui] Implicit button grabs
> 
> Hello everybody,
> 
> I have a program using a touchscreen set up with one window 
> that is a child of GR_ROOT_WINDOW_ID.  This window has 
> several children (each of whom have their own windows acting 
> as buttons).  I use GrUnmapWindow and GrMapWindow to switch 
> between the children when certain buttons are pressed.  All 
> windows select for both BUTTON_UP and BUTTON_DOWN events.  
> What I find is that sometimes when I press a button to switch 
> windows the new window immediately does an implicit grab.  
> This makes it so that the first time I press on anything in 
> the new window, I have to do it twice -- once to cause an 
> implicit ungrab, and once to get the actual button I wanted.  
> Selecting for only BUTTON_DOWN events prevents this behavior, 
> but I would like to be able to act on BUTTON_UP events as 
> well.  Is there any way to get rid of this behavior?
> 
> Thanks,
> Josh
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
> 
> 

Previous by date: 22 Jun 2006 07:04:27 +0100 Implicit button grabs, Josh
Next by date: 22 Jun 2006 07:04:27 +0100 freetype2 in portrait mode doesnt work, Uwe Klatt
Previous in thread: 22 Jun 2006 07:04:27 +0100 Implicit button grabs, Josh
Next in thread:


Powered by ezmlm-browse 0.20.