LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Silver button image resize

Hello,

 

i would like to programmatically resize Silver Buttons with images (e.g. Cancel Button).

I am able to change the button size as well as the Boolean Text Font Size using Property Node.

But I dont know how to change the button image size.

For this reason the resized button doesnt look really nice (see attachments).

Is there any easy way how to change image size?

 

Thanks a lot.

Greetings

Martin 

Download All
0 Kudos
Message 1 of 4
(2,704 Views)

I think you are going to need to export the image to another program that can resize the graphic, then import it back into the button.

0 Kudos
Message 2 of 4
(2,680 Views)

Thanks a lot. But I need to change the image size programatically (in run-time). And I think that there is no property/invoke node such as "Import Button Picture from File". Or isnt?

0 Kudos
Message 3 of 4
(2,661 Views)

I don't think there are any vector based images that would work on the control.

 

What you might want to do is us a picture indicator.  Let the the picture contain an image of the button and then you can draw the image on that button.  You'll have to come up with your own algorithm for resizing the image before drawing it.  And you'll have to use an event structure to detect mouse down and mouse up on the picture indicator so that it can programmatically change the image to a pressed/not pressed appearance, and act like a boolean button.

0 Kudos
Message 4 of 4
(2,647 Views)