03-26-2013 08:55 AM
Hi there,
I am working in LabVIEW 2011 SP1.
I want to use the blinking property of a button, to remind the user that the application is in some state.
I know that I can make my own timed loop to control the colors and blinking time, and that is what I am going to make.
I also know that I can set the application ini to use other blinking colors.
But I noticed some strange behaviour of the Silver Button Control.
When I use the blinking property on the standard buttons, the button blinks yellow background with red text.
When I use the blinking property on the Silver buttons, the button blinks with a yellow border, red backround and red text, causing that the text is badly visable.
I would expect that the blinking colors are like the standard buttons, so yellow background and red text (or other if you set it in the application.ini)
The colors are used wrong for the Silver buttons.
I think that this is caused by the silver buttons that has more panels in it's control (the shiny panel and/or border), and text. A standard button has only the background and text.
So instead of using the blink property, I have to make my own timed loop to control the colors.
My question: Is the normal (correct) behaviour?
03-26-2013 09:12 AM
For those who want to try, see attachment (LV11)
03-26-2013 02:11 PM
Try my Blink.vi
It causes any property, or set of properties, of a control, or set of controls, to toggle between any two values.
The Interval is common to all controls & properties, but the specific properties and the property values can be different for each control.
Function | Other Inputs Used | Comments |
---|---|---|
Set Rate | Interval | Starts the background task that does the blinking, if not already running |
Add Item | Ctl Refnum Property Index Property Data 1 Property Data 2 |
|
Pause | none | Sets properties to the "Property Data 2" values |
Resume | none | |
Remove Item | Ctl Refnum Property Index (optional) |
If Property Index is not connected, removes all items for the control |
Quit | none | Stops the background task. Restores properties to the values they originally had. |
03-27-2013 05:11 AM
Hi pcardinale,
Thanks for your library.
I've tested your demo, and it's working for the silver control buttons. I can set the background, and the text color stays the same (black).
The blinking property of LabVIEW sets the text color the same as the background color.