LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Customized Classic Flat Square Button deformed in runtime environment

Solved!
Go to solution

Hello to the Community

 

I have developed an application with customized boolean buttons based on Flat Square Button from Classic palette.

The customization is just a simple picture replacement imported thru clipboard.

The buttons behave normally when application is run in development enviroment.

Once built, the buttons are deformed:

RafTecnora_0-1695999811535.png

 

LV2020x64 here. On both Win10 and Win11.

No display scale at system level.

No control auto scale active:

RafTecnora_1-1695999829051.png

 

Any idea?

 

Thanks for reading

 

Raf

0 Kudos
Message 1 of 4
(834 Views)
Solution
Accepted by topic author Raf@Tecnora

Do the buttons still have a boolean text? Maybe the font changes if they use a symbolic font?

 

(note that of "lock text in center" is true for the boolean text, it will grow the control if the text no longer fits, probably even if the text is not shown)

Message 2 of 4
(818 Views)

Yeah...that was the case:

RafTecnora_1-1696327106905.png

As long as there is either no text or it is not locked in center, the button is not distorted when moving from development to runtime.

 

 


 

(note that of "lock text in center" is true for the boolean text, it will grow the control if the text no longer fits, probably even if the text is not shown)


For me this is a bug...

 

Thank you!

 

Raf

 

Message 3 of 4
(701 Views)

Raf@Tecnora wrote:

 

(note that of "lock text in center" is true for the boolean text, it will grow the control if the text no longer fits, probably even if the text is not shown)


For me this is a bug...


I am glad we solved the problem.. Since the boolean text can be show/hidden at runtime via property nodes, the current behavior probably makes sense. The generally buggy part is the handling of symbolic fonts and scaling in general, but that's a different discussion 😄

0 Kudos
Message 4 of 4
(664 Views)