ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with customising control

Hi All
 
When i am trying to customise a boolean button with a picture i am having some problems.
In order to customise the control i did the following steps....
 
right clicked the boolean button(ok button) in the front panel and selected Advanced->customise.
 
Then changed to customise mode.
Then upon right clicking the button selected-import from file and then selected the p[icture.
 
But in my front panel when i am clicking the button(which is customised with picture) under run mode then a fraction of second(between mouse down and leave) i can view the button as ok button itself...then onlly the button will be appearing as customised.
 
Where i went wrong?
 
Thanks in advance
0 Kudos
Message 1 of 6
(3,250 Views)
You customized only the default state of the button. Remember you can have different pictures for the different states of the button : for instance a key turned one direction or the other, or a switch up or down !!! You simply have to provide images for both states.
Chilly Charly    (aka CC)
Message 2 of 6
(3,242 Views)

Hi

Thanks for the reply.

I have already given image for the two states.But still its not displaying properly.

I have just attached a sample vi with a customised control.

Thanks once again

0 Kudos
Message 3 of 6
(3,236 Views)
While in customize mode, if you go to "Picture item" (that's in the popup menu, after the "Import etc..." items), you'll see that there are indeed 4 pictures : the first two you already changed correspond to the false/true states, the two others to the transition states false-to-true and true-to-false. Change also these images !
Chilly Charly    (aka CC)
Message 4 of 6
(3,230 Views)
If you're planning on using it multiple time turn it into a typedef, incase you want to change one picture all will be updated.

Regards,
André (CLA, CLED)
0 Kudos
Message 5 of 6
(3,215 Views)

Thanks.Its working now

0 Kudos
Message 6 of 6
(3,183 Views)