LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

blinking silver buttons have incorrect colors

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?

 

Blink_off.png   Blink_on.png

Wouter.
"LabVIEW for ARM guru and bug destroyer"
0 Kudos
Message 1 of 4
(3,191 Views)

For those who want to try, see attachment (LV11)

Wouter.
"LabVIEW for ARM guru and bug destroyer"
0 Kudos
Message 2 of 4
(3,184 Views)

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.

FunctionOther Inputs UsedComments
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.
0 Kudos
Message 3 of 4
(3,150 Views)

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.

Wouter.
"LabVIEW for ARM guru and bug destroyer"
0 Kudos
Message 4 of 4
(3,132 Views)