LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tab control blinking property does nothing?

Hi all,

 

I have a tab control with two pages. I'd like to set one of the page "tabs" to blinking when I need to draw the attention of the user to some changed value on that page. But it seems that the blinking property does nothing when set to True. Also, there doesn't seem to be a page-specific property to make just a specific page tab blink.

 

I'm left with doing clumsy things like putting a boolean indicator beside the tab text and making it blink.

 

Has anyone managed to make the tab page blinking work? 

 

Why wouldn't LabVIEW have an obvious property for doing that? Seems like a very desirable thing for end users to draw their attention (like for example, alarms or actions required).

 

 

0 Kudos
Message 1 of 11
(315 Views)

Blinking is just a timed color change. Once you allow multiple colors, you can do the following:

 

altenbach_0-1753373164407.png

 

Message 2 of 11
(297 Views)

Alternate option:

Allow different colors per page, then toggle the color of the page that needs attention if it's not selected.  Not as simple as setting a "blinking" property and being done with it, but should work.

Kyle97330_0-1753373239133.png

Edit: Altenbach wrote his reply while I was in the middle of making my example... Great minds etc. etc....

Message 3 of 11
(294 Views)

Thank you both, for your ideas!

 

This changes the color for the entire page, and not just the tab, though. 

 

And it's actually clumsier than using a boolean indicator on the tab. But I'll keep this in mind if I need it.

0 Kudos
Message 4 of 11
(267 Views)

Note that my while loop can be be completely separate from your toplevel loop and runs in parallel for the duration of the program. For simplicity, it could have an event structure where the blinking is done in the timeout event and selection with another event. Also create an event for the main stop, no local variable needed. 

0 Kudos
Message 5 of 11
(262 Views)

Also, your method does not work if the other page is active. That is a crucial requirement. 

0 Kudos
Message 6 of 11
(261 Views)

So is the goal to notify the user that something on that tab needs to be looked at but not actually go to that tab?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 7 of 11
(251 Views)

@abvenk wrote:

I'm left with doing clumsy things like putting a boolean indicator beside the tab text and making it blink.


That's not a bad idea.

 

 

George Zou
0 Kudos
Message 8 of 11
(237 Views)

@abvenk wrote:

Also, your method does not work if the other page is active. That is a crucial requirement. 


Are replying to any particular post, because we cannot tell what "your method" means here.

I also don't know what you mean by "active". My code should work no matter what page is visible.

0 Kudos
Message 9 of 11
(229 Views)

Here's a way to do it.

Message 10 of 11
(209 Views)