DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

save View on event independent from layout

Hello all

I am trying to program additional  right click menu options in VIEW but as far as I know, each time I use the AddUserCommandToEvent Command and add it to View.Events.OnShowingContextMenu or View.Events.OnContextMenuPointSelected the settings are only saved in the current view layout.  Thus if I load a new layout, the settings are wiped and I have to re-add them.  Is there any way around this that anyone knows of?  Thanks

 

0 Kudos
Message 1 of 2
(4,813 Views)

Hi ben,

 

Try not using the "AddUserCommandToEvent()" command.  Instead make a direct and exclusive assignment, like this:

 

View.Events.OnShowingContextMenu = "NameOfUserCommand"

 

If you want to have this assignement persist between DIAdem launches, then save the Desktop.DDD file.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 2 of 2
(4,789 Views)