LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to separate / detach a control / indicator from its container (tab) ?

Well I think you have either won  shiny new CAR or I will learn something when someone explains what is happening.

 

It appears the transparent portions of the boolean push-button behave badly what over-top of a system tab control.

 

NI,

 

I forget the formal syntax I supposed to use to invoke an Application Engineer, but could you pretend I worded it properly and take a look and why the boolean looks weird over a system tab control.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 11 of 30
(2,649 Views)

Harold,

 

What you said is what I mentioned as two options I have left, above-

Now I think I should either change the front panel color (which is not good, because as I mentioned earlier, the tab is "system" type, and it looks white on my computer with Vista, but may look gray on XP or 2000 and in that case the front panel color will stay white, meaning white shadow of the disabled indicator); or not make the indicator "disabled and grayed" (which means making compromise with my application).

 

But changing the background to white won't solve the problem, because if the program is run on XP/2000 or any other system, the "system" type tab control would appear gray/brown or whatever, and this object would become white (uglier situation than now, I suppose).

 

 

Ben,

 

shiny car sounds fantastic. But I think the issue lies, as I suspected and as Harold mentions, in the front panel color. The indicator, being detache from tab, has adapted to the front panel color.

 

My conclusion is that an indicator, while disabled and grayed out, adapts to the color of its container (in my case the front panel), because when it was on the tab (white - system) even when disabled, it remained with transparent background.

 

I am now trying to get back to the "modern" tab. But it doesn't. 😞 It's a TypeDef. And I am trying to modify the control in the control file, and it doesn't. 😞 Any idea?

Message Edited by Vaibhav on 09-04-2009 06:36 PM
Message Edited by Vaibhav on 09-04-2009 06:38 PM
Vaibhav
0 Kudos
Message 12 of 30
(2,643 Views)

I thought I remember reading about a similar problem a long time ago.  Something where the disabled grey did not look quite right on another grey.  Check out these links.  I hadn't read them before, but they do sound similar.)

 

http://forums.ni.com/ni/board/message?board.id=170&message.id=14130&query.id=89108#M14130

http://forums.ni.com/ni/board/message?board.id=170&message.id=22819&query.id=89108#M22819

Message 13 of 30
(2,641 Views)

using a cluster should work for you

 

sorry I tried it and it still didn't seem to work

Message Edited by Harold Timmis on 09-04-2009 01:45 PM
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 14 of 30
(2,631 Views)

using a cluster should work for you 

Yea, on this thread (http://forums.ni.com/ni/board/message?board.id=170&message.id=22819&jump=true as shown by Ravens Fan) it says the same thing. But I donno what does it mean?

 

sorry I tried it and it still didn't seem to work

then, why would u think it should work for me? 😄

Vaibhav
0 Kudos
Message 15 of 30
(2,626 Views)

That link that ravens Fan found by Greg McKaskle was indicating that putting the control in a cluster container that was in-turn colored transparent shoulod work. I treid that and I still get that weird look when disabled.

 

I set the cluster background to system white adn it looks better but don't know if it will be Ok on VISTA etc.

 

See attached LV 2009 version.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 16 of 30
(2,619 Views)

in vista it looks great great job ben

 

and yes it does have a hint of grey still hmmm

Message Edited by Harold Timmis on 09-04-2009 02:00 PM
Message Edited by Harold Timmis on 09-04-2009 02:02 PM
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 17 of 30
(2,617 Views)

and while editing the message, u missed to re-attach the file Harold. (does this bug of "broken attachment while editing message" lead me to some shiney prize??) Smiley Tongue

 

I guess, in any case, it would give some "bad" look if the tab and front panel are of different colors. Can anybody pay attention to the updated question - "how can I change my tab control (type def) back to Modern from system?"

 

It is stubborn.. Simply doesn't give in.  😞

Vaibhav
0 Kudos
Message 18 of 30
(2,610 Views)

One idea, I can't try as a have no vista:

Make a Custom Control (try Strict Type def) and use the System Palette to color the background of the ctl window.

 

Felix

 

0 Kudos
Message 19 of 30
(2,585 Views)

F. Schubert wrote:

One idea, I can't try as a have no vista:

Make a Custom Control (try Strict Type def) and use the System Palette to color the background of the ctl window.

 

Felix

 


 

Ok, I made a Strict Type def. of the indicator we're talking abt. And in the ctl window, I changed the background of the front panel. Seemed to me like the right shot.

But, doesn't work. And this time I am surprised. Because it just didn't change the indicator's background to white while disabled and grayed out. Strange. It's strict type def.

And as a last weapon, I even changed the color of the control's background (in the ctl window) .. like a hard coded (the system white color) and even then while running the vi, it kept the indicator with gray background (like the front panel) while disabled/grayed out mode.

 

 

Vaibhav
0 Kudos
Message 20 of 30
(2,573 Views)