LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Images on buttons

Just built this VI that seems to work fine but I wanted to reduce the image size to 25x25 and not show the button. I didn't create a ctl per se. My theory is that I just dragged an image on top of button and somehow they merged. The version I showed below also works fine, i.e. when you select the school icon it open the school website in the default browser window. 

Picture1.png

0 Kudos
Message 1 of 5
(842 Views)

You need to Right click on the button then select Make Type Def. 

Then OPEN TYPE DEF. It will allow you to edit the button, Click on the TOOL on the Top left

LVNinja_0-1690304418296.png

Copy the image to the Clipboard

 

Then hover over the button and right click and select IMPORT FROM CLIPBARD, 

click from TRUE AND FROM FALSE. 

Save it as *.clt file then you can use it on your code. 

 

LVNinja_1-1690304554294.png

 

0 Kudos
Message 2 of 5
(814 Views)

here is an example of what could look like. 

0 Kudos
Message 3 of 5
(813 Views)

I don't think I explained myself very well the Link.vi and the link on the other VI work fine. However, I wanted to shrink the image to 25x25 vs 50x50. Originally, I didn't use the way you suggested. Using the Links.vi I reduce the button sizes to 21x21 and everything still works fine. If I reorder the images to the background they still maintain the same functionality but I cannot delete the buttons. The I used your suggestions and just replace the images with 25x25 images and it looks like it is working. If I save the ctl would I needed to include it when you build an executable? 

 

Thanks

0 Kudos
Message 4 of 5
(783 Views)

You don't need to explicitly add .ctrl files in the Application builder properties ( However it is good practice to maintain the proper folder structure to keep the .ctrl files along the folder structure of your Source files.

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 5 of 5
(760 Views)