10-10-2010 09:52 PM
I'm full of unusual requests lately..
Here goes..
I need to be able to underscore a single letter from the boolean text of a button.
For instance if the boolean text reads Select, I'd want to underscore the S in Select.Possibly "bold" it too.
I've thought of the Caption, but if I overlay it on top of the switch, it impedes functionality (obstructs the button).
There is no room to fit the Caption (or Label) near the button itself.
Any suggestions?
Thanks.
Solved! Go to Solution.
10-10-2010 09:55 PM
Immediately after posting this it dawned on me. I didn't need to have the entire text in the caption, just the letter which is underscored.
That worked.
If there is a way to customize the formatting of a boolean text, I still welcome the suggestions.
Thanks.
10-10-2010 11:21 PM
Hi,
I just gave a try to problem. Please take a look to the vi attached (not too tidy of course). The "Selection" logic that works out for the string should work for the boolean also. But the behaviour is different not sure why. It may trigger some other ideas too
10-11-2010 07:02 AM
Why underscored? Is it supposed to be a shortcut? If so, doesn't windows itself underscore shortcut keys? (Now how to set them in LV ...)
/Y
10-11-2010 07:06 AM
A quick test showed that you can select part of the caption text and underscore it through Font dialog.
/Y
10-11-2010 07:19 AM
My try attached.
Felix
10-11-2010 08:05 AM
Did even code it further...
Felix
10-11-2010 08:08 AM
@f. Schubert wrote:
My try attached.
Felix
Felix's attempt doesn't work in 8.2 atleast, but if you link it to the caption it works fine. You can even compress it to 1 property node, they perform top-down. 🙂
/Y
10-11-2010 08:19 AM
Thanks guys,
The examples you provided undescored the entire boolean text.
What I am trying to attempt is to underscore a single letter, not the entire boolean text.
What I got: BooleanText
What I need: BooleanText or BooleanText or BooleanText
Thanks,
RayR
10-11-2010 08:23 AM
Yamaeda,
I can selectively underline a single letter of the Caption. As a matter of fact, I "fake" the solution by overlaying the Caption (well, a single letter with the underscore) over the boolean text. Maybe this is a new feature that should be requested.
Due to space constraints, the boolean text is used to identify the button, not the caption or label, which is why I am trying to figure out if a single letter of a string - word can be underlined within the boolean text.
By the way, the boolean text letter underline does not have to be done at run-time. It can be done upfront. It is static.