LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I Load pictures for buttons in run mode not in edit mode

Solved!
Go to solution
In edit mode we can customize buttons and we can replace pictures from files or clipboard for buttons.
but this cause that size of my vi and so my exe file become very larg for more pictures and buttons.
also I want to change button picture in run mode. if i can, then i load necessary pictures whenever it need,
how can i do it?
 
thanks
 
0 Kudos
Message 1 of 4
(2,999 Views)
I suspect that you are not importing the pictures at a reasonable size, else the size of the VI should not increase that much.
 
For example, if your button is 50x50pixels, don't import a 5 megapixel image. You should resize/resample your image in a photoediting program so it only retains enough information needed for the final size.
Message 2 of 4
(2,995 Views)
Solution
Accepted by topic author javadi_ali
Why not use a mouse down event on a picture indicator as a button?? Then you could load whatever image you want into the picture. Or put a transparent button on top of the picture indicator.

Message Edited by unclebump on 10-20-2007 01:38 PM

Message 3 of 4
(2,985 Views)
There's an Xcontrol developed exactly for this purpose!
See at the Code Repository at Lava.

You can edit several parts of the Control (text, picture and button), it has hoover capabilities.
If you miss anything please leave a message at the Lava Support forum.

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 4 of 4
(2,966 Views)