NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

context menu visibility in UI sequence view control

Hello,
I am working on an edit substep vi of a step type, which uses the teststand UI controls, namely the teststand UI Insertion Palette and SequenceView.  This edit substep will bring up the contents of the step type sequence, and allow the user to edit by dragging/dropping step types and templates from the insertion palette. 
I have the basic functionality working, but I notice when right clicking on the steps in the sequence view, there is no context menu that comes up (which normally contains an defined edit substep labels, cut/copy etc.).  I have set the application manager "IsEditor" to true.  Is there another property/method somewhere in the SequenceView ActiveX controls or elsewhere, that will enable the contents of the context menu to come up when a step is right-clicked in a the sequenceview control?
Thanks for any input
David
0 Kudos
Message 1 of 4
(3,622 Views)

Hi David,

What version of TestStand and LabVIEW are you using? Would it be possible for you to post a bit of sample code?

Jervin Justin
NI TestStand Product Manager
0 Kudos
Message 2 of 4
(3,597 Views)

Jervin,
It is attached.  The disable case in the sequence structure is an experiment to try and bypass the login prompt (based on advice in another thread).
This vi is going to be used as an edit substep vi, to allow the end user the ability to drag a few specific step types into the sequence.  If I can get the right-click context menu to work in the sequence view control, it will allow the end user to configure the step types they drag in.
Any help is most appreciated.

David



Message Edited by david_jenkinson on 02-25-2008 07:39 PM
0 Kudos
Message 3 of 4
(3,592 Views)

Hi David,

What you might have to do is register a callback VI for the CreateContextMenu event.

Refer to the following article that explains how event callbacks work for an operator interface and how to modify them:
Developer Zone Tutorial: Adding Custom Commands to the LabVIEW Operator Interface
Even though you want to use the default context menu, this article explains some of what goes on behind the scenes, especially section 2 and figure 4.

The VI's that the article references are located in:
<Program Files>\National Instruments\]TestStand x.x\UserInterfaces\NI\Full-Featured\LabVIEW\TestExec.llb
Particularly "Full UI - Configure Event Callbacks.vi" and "Full UI - SequenceView CreateContextMenu Event Callback.vi".

Hope this helps.

Jervin Justin
NI TestStand Product Manager
0 Kudos
Message 4 of 4
(3,569 Views)