LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Looking for menu code similar to when we're defining an enum or ring constant

Hi all,

 

I've got a question that I don't really know how to find the solution to (which is bizarre, b/c usually you can find everything on the forums.)  I'm looking for some example code that provides the same structure as when we're defining a enum constant.  For example, you can add/delete items in the enum, move an item up or down, etc.  My application requires an interface for the user to define a sequence of procedures, and my initial inspiration was to use something similar to the enum definition interface.  Besides add/delete/move up/move down, I will add another button called "modify" that calls another pop-up window to configure the settings of that particular procedure.  Is there a template that does this already?  I would love to see how this is done in LabVIEW.

 

Thanks in advance,

 

John Wu

Riobotics Consulting

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

Hi riobotics1,

 you need to create an xcontrol if you want to add your own functionality to an existing control.

 

regards,

SrikrishnaNF

Regards,
Srikrishna


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

Well, I don't think I need something as complicated as an XControl.  I slopped some code together, I think this can do what I want, just wondering if I needed to reinvent the wheel.

 

-John

Message 3 of 4
(2,117 Views)

Sounds alot like a normal Listbox, possibly with the addition of a couple of buttons the reorder the array of strings and writes it back.

 

/Y 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 4 of 4
(2,095 Views)