LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Removing the checkmark from a Ring or Enum Control

Solved!
Go to solution

This has been asked by others previously but I didn't see any complete answers. For a ring control (or enum), a checkmark appears next to the active / selected item when you open the dropdown menu. Is there a way to remove the checkmark? I'd just like a regular, no-frills dropdown menu.

 

ring.png

 

A similar feature exists for context menus in LabVIEW using the "checked" terminal of the "Set Menu Item Info" function. Is there anything like this for the dropdowns of rings and enums?

 

I'm aware that a Combo Box does NOT have these checkmarks, but the Combo Box is undesireable since it doesn't open the dropdown menu unless you click directly on the dropdown arrow. Think of nearly any online form that you've had to fill out and you've probably encountered a dropdown like what I am trying to recreate, for example:

 

ups.png

 

Thanks!

0 Kudos
Message 1 of 4
(3,239 Views)

Without creating a custom X-control or using an ActiveX control, I'm not seeing anything that will help with this.  The text ring control doesn't have a check mark but it also doesn't have the dropdown button (you simply click anywhere in the control).  But that type of control is not available in the System controls palette. 

 

If you wanted to do an X-control, you could use a listbox as the dropdown menu, a string control as the main control and a small button.  When the button or string control is clicked, make the listbox visible. 

 

It would be a fun little project but since I'm to lazy to code all of that up just to get rid of a check mark, I'd stick with the ring control.  Smiley Very Happy

aputman
------------------
Heads up! NI has moved LabVIEW to a mandatory SaaS subscription policy, along with a big price increase. Make your voice heard.
Message 2 of 4
(3,192 Views)
Solution
Accepted by topic author epalmgren

I never actually noticed that checkmark until you brought it up! One hack you could try is to edit the combo box control, so that the button which drops the list down, covers the entire control. You can make it transparent, and "bring to front" so that if the user clicks on the box, the menu drops down. You can add a little black triangle just to make it obvious to the user that it drops down.

Message 3 of 4
(3,181 Views)

Thank you both for your input. I like this control you've made, good idea! This should do the trick.

0 Kudos
Message 4 of 4
(3,147 Views)