LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to customize control with "color sensitive" picture

Hi Group,

from time to time I create my own boolean controls by importing BMP pictures
into them, what works fine and leads to cool results. The disadvantage of
this proceeding is, that you cannot color such a "bitmap button" with LVs
color tool.
For this reason I tried to find a solution with vector graphics (WMF or EMF
format), but this led to the same result: I cannot tinge a customized
button, it simply keeps the imported picture untouched. (LV 5.x and LV 6.0)

So... What do I have to do that a customized button initially shows an own
image, but -lets say- the picture's background can be set to another color
with the color tool? Like it's possible with almost any usual LabVIEW
control.

Hope som
eone can help me here!

Greetings,
Hans

P.S.: To the "cool results" - you may want to take a look at
http://www.intelligent-control.com/images/scrn_05.gif
0 Kudos
Message 1 of 2
(2,877 Views)
"Hans-Jürgen Philippi" wrote:
>Hi Group,>>from time to time I create my own boolean controls by importing
BMP pictures>into them, what works fine and leads to cool results. The disadvantage
of>this proceeding is, that you cannot color such a "bitmap button" with
LVs>color tool.>For this reason I tried to find a solution with vector graphics
(WMF or EMF>format), but this led to the same result: I cannot tinge a customized>button,
it simply keeps the imported picture untouched. (LV 5.x and LV 6.0)>>So...
What do I have to do that a customized button initially shows an own>image,
but -lets say- the picture's background can be set to another color>with
the color tool? Like it's possible with almost any usual LabVIEW>control.>>Hope
someone can he
lp me here!>>Greetings,>Hans>>P.S.: To the "cool results" -
you may want to take a look at>http://www.intelligent-control.com/images/scrn_05.gif>>

Hi Hans,

I don't think they have a way so far to change custom Boolean control color.
You can do something with ActiveX. Into Visual Basic make your nice control
including color control. But I never try.
The fast thing I do is, select "list & ring" palette select "pict ring" make
indicator mode and include all your *.bmp control.
Make the frame of the pict ring transparent.
And cover the pict ring with "flat square button" with transparency.

On this way you have as many picture that can match you back ground.
But remember pict ring is not Boolean control that why you have to add on
top a transparency "flat square button"
Hope that help.

Rejean Lafortune

CAE Electronics Ltd.
Avionics Interface Engineering
0 Kudos
Message 2 of 2
(2,877 Views)