Jump to content
Sign in to follow this  
Guest SRS-103

Handling right click on a gauge

Recommended Posts

Guest SRS-103

Hi,So far I failed to define mouse area for right mouse click. If I defined MOUSE_CHILD_FUNCT( 48,38,20,35, CURSOR_UPARROW, MOUSE_RIGHTSINGLE, com_mouse_2_left_cb)it did not call my mouse callback function at all. However I saw some panels where left click was the fine change and right click was used for fast change (Project Fokker). Also PT Tu154 is using the right click for special things (open/close switch covers).For me right click always displayed the panel menu. Should I somehow disable that in panel.cfg for right click working on the gauges?Gabor

Share this post


Link to post
Share on other sites
Guest SRS-103

Well... Disregard my question. It works perfectly! I have no clue, what I had made wrong earlier.The only comment is that if you process both left AND right click, test mouse_flags with the same MOUSE_RIGHTSINGLE and MOUSE_LEFTSINGLE flags within the callback function to figure out for which event it was called.Gabor

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...