LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to add 2 numeric controls to a runtime menu of a control programatically?

Hi There!
 
My aim is to, when i right click on lets say an indicator, i would like to pop up a menu with a minimum and maximum numeric control for the indicator, so that the min and max limits can be set in such a way!
 
I have looked at adding "text" values as menu items, but dont know how to do, if it can be done, for numeric controls?
 
Maybe i should just create a little window which i call when the user right-clicks on the component, and in this window i have a min and max value?
 
Please advise.
 
Thanks
Regards,
0 Kudos
Message 1 of 4
(2,765 Views)
Hi matrix,

there are several options:
- You can create an context menu which allows the user to change min or max value
- You can create a XControl where you implement the min/max setting ability.
- You can catch right-click events on your indicator to call a subvi handling the min/max settings (maybe you have to use some tranparent control over the indicator to catch mouseclicks).

The first 2 options apply to LV8+, the 3rd one can be used from LV6.1+ 🙂

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,761 Views)
Hello matrix,
I read a similar question in this thread

http://forums.lavag.org/index.php?showtopic=345 at post #9

It uses a subVI to display the menu which is a listbox. You could add the numerics to this SubVI and react on a click at the menu item "Apply" or sth.

Greets, Dave

Message Edited by daveTW on 11-30-2006 05:48 PM

Greets, Dave
0 Kudos
Message 3 of 4
(2,743 Views)

Hi there again!

 

Thanks for your responses, i will be looking into it.

Regards,

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