LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Disable the "Add element"

Hi,
 
I have created a vi with a 2D [pict ring] array control on the front panel. I have turned off the index display and resized the array to show the exact dimensions I want.
 
When the VI runs, clicking right on an element of the array brings up a menu including
Insert row before
Insert column before
Delete row
Delete column
 
 
If any of these options are selected, the array is no longer the correct size.
 
How can I disable these options? I've looked at the property node, vi properties,
and tools->options, but can't find anything suitable.
 
I'm making mods to an existing system, so stuck with LV6.1
 
Thanks,
Rod.
 

Message Edited by Rod on 08-16-2006 05:16 PM

0 Kudos
Message 1 of 6
(3,443 Views)
Hi Rod,

use the event structure to detect changes to your array. When the dimensions change you simply overwrite with an older correct value...
It's not as nice as hiding the menu options, but works.

Message Edited by GerdW on 08-16-2006 06:27 PM

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(3,434 Views)
A better idea would be to use a filter event. You could actually filter out any right button mouse clicks on the array control itself. This document is for LabVIEW 8, but should still give the basics on how to proceed in 6.1.
Jarrod S.
National Instruments
0 Kudos
Message 3 of 6
(3,427 Views)


@Rod wrote:
 
... How can I disable these options? I've looked at the property node, vi properties,
and tools->options, but can't find anything suitable.
... stuck with LV6.1
 

If you don't need any run time short cut menus for the front panel in question you can deselect 
VI Properties>Window Appearance>Customize>Allow Run-Time Shortcut Menu.  

Otherwise, filtering using events works.

=====================================================
Fading out. " ... J. Arthur Rank on gong."
Message 4 of 6
(3,411 Views)
Thanks all for your suggestions; I took the route of disabling the right mouse - I can live without the other things on the menu!
 
I was already using an event structure for changes to the array, so the suggested code fits in well with what I already have.
 
Rod.
 
0 Kudos
Message 5 of 6
(3,405 Views)
Excellent, glad to hear you got something working! When you're company's ready, have them upgrade to 8.2 so you can create your own custom shortcut menus with only the options you want that perform custom operations (shameless plug 😉 ).
Jarrod S.
National Instruments
0 Kudos
Message 6 of 6
(3,395 Views)