Sign in to follow this  
Guest SRS-103

Handling right click on a gauge

Recommended Posts

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
Help AVSIM continue to serve you!
Please donate today!

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