LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Intaris

Programmatic control over right-click menus

Status: Declined

Any idea that has received less than 6 kudos within 6 years after posting will be automatically declined.

It would be a very nice addition (especially when using XControls) to be able to actually programatically activate a right-click menu for a given control.

 

As it stands, one of the rather annoying disadvantages of an XControl is the inability to directly configure controls visible ont he Facade VI on a per-instance basis.  The ability to programatically detect right-clicks and activate the appropriate right-click menu would be cool.

 

It would also allow for UI features like a google map delayed right-click menu appearance.  If we double-click the right mouse button, zoom, otherwise (if a single click within a defined time period) open the right-click menu.

4 Comments
Intaris
Proven Zealot

I was mulling over my proposal last night and something else occurred to me.

 

A general method to retrieve a list of "standard" right-click menu entries (Array of Tag and display text via property node) for ANY given control coupled with the ability to actually CALL this functionality (i.e. simulate a specific menu selection via invoke node) would also give us enough tools to create a decent workaround for this problem.  That way we could dynamically create "mock" right-click menus and get the required functionality that way.

TheQ
Active Participant

I don't understand, it seems to me that this is already possible as events in the event structure. 

 

On any control in your facade an event for "Shortcut Menu Activation?" catches a menu before it loads to change the structure, and "Shortcut Menu Selection (User)" allows you to control the action that takes place due to the selected tag (menu item). 

 

Also, there are events for "Mouse Down" that have double-click and modifiers such as Ctrl, Alt, Shift, etc as part of its returned data.

Quentin "Q" Alldredge

Chief LabVIEW Architect, Testeract | Owner, Q Software Innovations, LLC (QSI)
Director, GCentral | Admin, LabVIEW Wiki | Creator, The QControl Toolkit
Certified LabVIEW Architect | LabVIEW Champion | NI Alliance Partner



Intaris
Proven Zealot

Show me a system where you can find out what the entries for a right-click menu for any given control is without having to click on the control and intercept the "Menu Activation" filter event first.

 

Hence "programmatic" control and not "user" control.

 

Can you launch a right-click menu without first registering a click from the user?

Darren
Proven Zealot
Status changed to: Declined

Any idea that has received less than 6 kudos within 6 years after posting will be automatically declined.