LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scaling icons on buttons with different windows sizes

Solved!
Go to solution

Hello

 

I placed arrow icons on buttons:

Tekhee_0-1605211577126.png

I want my application to adapt to windows size. The arrow take strange places on the buttons after scaling. Is there a way to fix this? I would like it like the top button but it behaves as the bottom one.

 

0 Kudos
Message 1 of 5
(1,640 Views)

I would say no.

 

I find that trying to do anything with scaling objects tends to not work correctly.  And if you do something like repeatedly resize a window, you'll find the results getting continually worse.

0 Kudos
Message 2 of 5
(1,599 Views)

Are you talking about keep the icon at the center? or resize the icon?

 

George Zou
0 Kudos
Message 3 of 5
(1,585 Views)

Imho both should be possible. But keeping it in the center would be OK.

It dissappoints me for a graphics tool in 2020. Does anyone know these things will become easier in NXG?

0 Kudos
Message 4 of 5
(1,580 Views)
Solution
Accepted by Tekhee

Imho both should be possible.

It is.

 

You have to use a vector image for the icon, otherwise, it doesn't looks good after resize.

Then you achieve both when you customize the button:

image.png

 

 

George Zou
Message 5 of 5
(1,573 Views)