LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

custom define the active area for a toggle switch?

Is there a way to increase and custom define the active area for a toggle switch? I don't want to make the switch bigger, I just make it so you don't have to click precisely on it and can just get close.

0 Kudos
Message 1 of 6
(3,078 Views)
Earlier today I posted a question about the boolean text on a toggle. The reply from JB helped me and gave me a hint as to your question.

If you show the Boolean text, the boundaries of the text box appear to become the sensitive area for clicking on the switch. The switch attached shows this. I colored the background of the text box to make it easy to see the boundary.

Lynn
Message 2 of 6
(3,066 Views)
Hi Mosey,
you can customize it. right click on your control and select -> advanced -> customize. If you resize the circle, then the area should be bigger.
Mike
Message 3 of 6
(3,062 Views)


If you show the Boolean text, the boundaries of the text box appear to become the sensitive area for clicking on the switch. The switch attached shows this. I colored the background of the text box to make it easy to see the boundary.



I did not know that.... thanks Lynn, I'm sure I'll find a use for that down the road. Smiley Happy

SteveA
CLD

-------------------------------------
FPGA/RT/PDA/TP/DSC
-------------------------------------
0 Kudos
Message 4 of 6
(3,054 Views)
SteveA,

I did not know it either until I was trying to do something else with customizing a control this morning and happened to notice that it had this effect.

Lyy
0 Kudos
Message 5 of 6
(3,033 Views)
Lynn, Thanks for the help. I have it working good now.

A few helpful tips for anyone who may use this:

After you right click on the switch and select Advanced - Customize, you need to Change to Customize Mode (click on the wrench).

If you have any text in the area, make sure you move it to the back (Ctrl+Shift+J, or click on Reorder from the top toolbar) or you will have a dead spot where the text is.

Don't forget to save it as a Strict Type Def so you can reuse it.

0 Kudos
Message 6 of 6
(3,020 Views)