04-11-2022 03:01 AM
Hi there
I'd like to ask just how to properly set my Labview interface such that it scales appropriately with different monitor resolutions.
I've tried VI Properties -> Windows Size -> Maintain proportion and Scale all objects checked.
I've also tried changing the "Set Current Panel Size", but no luck. I think the problem is that this setting does not adjust text size or something. I don't know.
Here is an example of incorrectly changing the size of the panel, literally just maximizing and minimizing window.
Can someone please specify clearly what do I need to do such that I change resolutions and everything is exactly where it is just smaller/bigger?
Thanks a lot.
Regards,
Oscar
04-11-2022 01:15 PM
What you are trying to do just does not work well, and never has. I never use any scaling features.
What are you trying to achieve? How many different resolutions are you planning to support?
What's wrong with supporting only one windows size?
04-11-2022 01:26 PM
@altenbach wrote:
What you are trying to do just does not work well, and never has. I never use any scaling features.
What are you trying to achieve? How many different resolutions are you planning to support?
What's wrong with supporting only one windows size?
I have to admit this is my biggest Pet Peeve about LabVIEW. I really hope this issue gets high priority on the roadmap. Not being able to make UIs that scale correctly leads a bunch of non-LabVIEW programmers/users to easily dismiss it as not a serious programming language.
04-11-2022 01:28 PM
Hi there
Thank you for your reply.
It is not that I need the application to support multiple resolutions. I just work on different computers, some of which have 4K, 3K, and HD whilst others just have.
I mean, I assume I could just fix the res to HD on all monitors, but I don't know. I guess I expected this to be solvable.
Either way, is good to know that someone else also has prpblems with this, so I guess I'll just have to settle for now.
Thanks a lot!
Oscar
04-11-2022 01:31 PM
Agree 100%
04-11-2022 01:41 PM
The best way to scale objects on the front panel is by using splitters and panes. You can have one object in the pane and have it scale. BUT, as you have found this will only scale the control and not the font size, that would have to be done programmatically.
Splitters and panes can help a lot, but there are still some missing gaps.
04-11-2022 02:36 PM
All my front panels fit nicely on 1902x1280 (examples,). It is often useful to be able to see other things if the monitor has more space (second program, news, email, browse the forum, etc.). 🙂
Trying to make any LabVIEW program scalable is just herding cats.
04-11-2022 02:56 PM
I write programs internally for a large lab. The major issues are:
All modern applications seem to handle scaling pretty well. Giving a user an application that they can't resize feels limiting to them. I spend a significant amount of time doing splitters, panes, and resizing for distributed applications. Unfortunately, they are stuck with one font size. I haven't gone down that hole yet.
In addition, modern applications are adding a dark mode theme also, would be nice to be able to switch effortlessly between a normal and a dark mode automatically.
04-11-2022 03:10 PM
I feel you.... it is definitely required if you want to give this to any user. Seems like the most important thing missing is the font, but I've also seen other cases where the field/variable itself doesn't scale well. One example of this is a VISA array that I showed.
To thise tuning into the conversation... Can we get like 10,000 likes and like 1M views for this post so that NI fixes this? 😀
Thanks.
04-12-2022 01:29 AM
have you tried splitter bars? Gives you at least a little scalability.