01-31-2006 11:02 AM
01-31-2006 11:20 AM
01-31-2006 12:49 PM
01-31-2006 02:03 PM
The Boolean Text does not pose a problem because it is built into the control, you only choose its value and if it is visible or not.
OK, for a work around you will really have to want this text on the button bad. The only way I could get the text I wanted onto the button in the format I wanted was to customize the control doing the following.
Please note I am by no means an expert with customizing controls so if any one in the forum knows how to do this better PLEASE by all means reply as I would like this information as well.
1. Open a blank VI and create a Text box with the text and format including sizeyou wish. Make sure your use the paint function to make the backround of the text box the same color as the Button or a different color if you like. If you leave it as transpraent the result will be a white backround using this process.
2. Copy the text box to the clip board. (ctl-c)
3. Open Paint and paste, save the file as *.jpg
4. Using a picture editor open the *.jpg and crop the picture so only the text is left and save the file and copy it to the clipboard.
5. Place the boolean button you wish to use on the front panel, Make the Boolean Text NOT visible if it isn't already, Size , right click on it goto Advanced->Customize....
6. You are now in the costomize contol window, Right click on the Boolean goto Import Picture->Decal. This has now pasted a picture of the text on the button.
7. Save the control and say yes to replace it on the front panel.
You will have to do this with each button for different text (There has to be a better way???)
Anyway hope this is of some help.
Regards,
02-12-2007 03:42 PM
I have figured out a way to underline 1 letter in boolean text.
This method uses the property node of the boolean.
I usually have an initializion case for my vi's so I put this in there. If you don't have that make sure this is one of the first thing your vi does.
1. Create Property node for boolean
2. Expand Property node to 4 Properties
3. Set the first property to Boolean Text\Font\Underline to False
4. Set the second property to Boolean Text\Selection\Start to the begining character of the string you want underlined
5. Set the third property to Boolean Text\Selection\End to the end character of the string you want underlined
6. Set the fourth property to Boolean Text\Font\Underline to True
I have attached a VI developed in 7.1 to illustrate this.
02-12-2007 03:43 PM
02-12-2007 04:08 PM
02-13-2007 01:07 AM
Dan and Andrew, thanks!
That does make life easy.