07-04-2023 02:32 AM
Hello I have attached a VI which has a splitter at the bottom and a decoration and some front panel objects like this.
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.
07-04-2023 06:07 AM
I haven't tried, but i'd test with VI:Panel resize-event.
07-04-2023 07:51 AM
you also need to go to each panel (right click on the pane) and select Pane sizing > Scale ALL objects with Pane
07-12-2023 12:58 AM
I cant click on this because it is disabled. Why is that. Thank you.
07-12-2023 02:22 AM
It is disabled because it says it applies only for single pane options. Mine has four panes.
07-12-2023 02:32 AM
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.
07-12-2023 04:04 AM
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.