Re: Capturing the right mouse click...



Dani Mezher escribió:
    How can I capture the right mouse click? Is there any possibiblity
to capture the middle button mouse click???

Dany
 

Hi, you must use the clicked event, and in the callback you must consult
the type of event. Example  for double click:
    if(event->type==GDK_2BUTTON_PRESS)
    {
      
    }
There are types for double, triple, middle ... defined in gdk reference manual.
    GDK_NOTHING,
    GDK_DELETE ,
    GDK_DESTROY           
    GDK_EXPOSE            
    GDK_MOTION_NOTIFY     
    GDK_BUTTON_PRESS      
    GDK_2BUTTON_PRESS     
    GDK_3BUTTON_PRESS     
    GDK_BUTTON_RELEASE    
    GDK_KEY_PRESS         
    GDK_KEY_RELEASE       
    GDK_ENTER_NOTIFY      
    GDK_LEAVE_NOTIFY      
    GDK_FOCUS_CHANGE      
    GDK_CONFIGURE         
    GDK_MAP              
    GDK_UNMAP             
    GDK_PROPERTY_NOTIFY   
    GDK_SELECTION_CLEAR   
    GDK_SELECTION_REQUEST 
    GDK_SELECTION_NOTIFY  
    GDK_PROXIMITY_IN      
    GDK_PROXIMITY_OUT     
    GDK_DRAG_ENTER        
    GDK_DRAG_LEAVE        
    GDK_DRAG_MOTION       
    GDK_DRAG_STATUS       
    GDK_DROP_START        
    GDK_DROP_FINISHED     
    GDK_CLIENT_EVENT      
    GDK_VISIBILITY_NOTIFY 
    GDK_NO_EXPOSE


cheers,
    Eusebio
--
"No me des las gracias a mi,
 daselas a la ley de la gravedad"
 MacGyver en The Simpsons
 

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]