LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom boolean: how can I merge a 4-state with a 6-state button?

Hello,

 

I'm making custom controls and they have the background (6-state with mouse hover) and icon (4-state)

System button (6-state)System button (6-state)

 

Square Radio Button (4-state)Square Radio Button (4-state)

 

Currently I can make the system button (6-state) and draw six .png images for each icon. But this process requires redraw the six images for each new custom button

 

If I can mix the System Button (6-state) with the Square Radio Button (4-state), I can draw a base button with:

  • 6-state = background image (will not change between each button)
  • 4-state = icon for FALSE/TRUE (will change between each button)
  • Button text = optional

The second method requires only change the icon image for each new custom button, i.e., easier process

 

For example:

ExampleExample

 

To design this custom button with only 6-state, the developer needs six .png files for each icon

To design this custom button with 6-state + 4-state, the developer needs only update the icon, keeping the background

 

The icon update process will be easier, because the developer can download the icon image from a good source (like Google Fonts) already in .png format, without the need of assembly the images with the background or resizing

 

 

Is there a way to merge these two booleanos into a single custom control with this behavior?

0 Kudos
Message 1 of 1
(1,151 Views)