From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

xcontrol Shortcut Menu Activation? event does not work immediatly after drop

I have an XControl that needs a custom menu.  I have placed callback events in the Facade.vi for "Shortcut Menu Activation?" events for both the Pane and the particular control.  When the xcontrol is first dropped on the front panel of a VI, if I immediatly right-click I do not get my event callbacks.  If i click off the VI and back again the callbacks work.
 
Does anyone know how to ensure the menu event is registered immediatly?
 
Thanks,
--Matt
0 Kudos
Message 1 of 2
(2,136 Views)
Further investigation showed that this is only a problem when the XControl is dragged from the project, not when it is placed from the controls menu, so it is much less of an issue.
0 Kudos
Message 2 of 2
(2,132 Views)