LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Resize front panel

Hello I have attached a VI which has a splitter at the bottom and a decoration and some front panel objects like this. 

resize front panel decoration and objects.jpg

I want to resize this automatically when I change screens. My laptop screen is small but I am using a different monitor. When I unplug from the monitor and use 100% my laptop screen, then I cant see this. How do i automatically change this. I have attached the VI. Kindly help me. Thank you. 

0 Kudos
Message 1 of 7
(904 Views)

I haven't tried, but i'd test with VI:Panel resize-event.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 7
(872 Views)

LVNinja_0-1688474932407.png

you also need to go to each panel (right click on the pane) and select Pane sizing > Scale ALL objects with Pane 

0 Kudos
Message 3 of 7
(850 Views)

I cant click on this because it is disabled. Why is that. Thank you. 

0 Kudos
Message 4 of 7
(776 Views)

It is disabled because it says it applies only for single pane options. Mine has four panes. 

0 Kudos
Message 5 of 7
(768 Views)

So i wrote a program where as the pane size changes all the objects in it also changes by percentage. So size of all the objects is a percentage of the pane size and as I move the program to a smaller window the size worked but position is still a problem. So I have to change the position as well. How do i do that. Because for size, I use the pane bounds as reference. So when the pane bounds changes then automatically the size of all the objects changes based on the percentage. But the position is not changing. So there is no reference value to give. Anyone has a idea on how to do this. Thank you. 

0 Kudos
Message 6 of 7
(765 Views)

LabVIEW doesn't work nicely with scaling, especially scaling of controls and indicators. I suggest to leave those the same size. The best thing you can do is set the splitter to size proportionally.

 

Unless it is absolutely necessary, save yourself the headache of resizing front panel elements.

0 Kudos
Message 7 of 7
(742 Views)