02-28-2024 04:14 AM
Lets say i made a VI in small screen laptop now i want to move to a big monitor, can i use .ini to save the configuration and later made minor changes into the values for big monitor? Or is there another way to move the application from small screen to a big screen without deforming the front panel?
02-26-2024 03:13 AM
I am unable open the link, do you still remember which video is this? i need this one on urgent basis.
Thank you!
02-26-2024 03:21 AM
I want to make a VI which will display the front panel properly across both(small and large) resolutions and when window is maximized, all items and text should be proportionately displayed. Can you help me with the approach?
02-26-2024 05:22 AM
Hi tan,
@tan0709 wrote:
I am unable open the link, do you still remember which video is this? i need this one on urgent basis.
It wasn't a video, it was a knowledge-base article...
You can set splitter bars in your frontpanel (to define panes) and you can define behaviour of frontpanel elements for each pane...
02-26-2024 06:20 AM
@tan0709 wrote:
I am unable open the link, do you still remember which video is this? i need this one on urgent basis.
Thank you!
See: https://web.archive.org/web/20190725014214/http://www.ni.com/tutorial/3687/en/
02-26-2024 07:02 AM
@tan0709 wrote:
I want to make a VI which will display the front panel properly across both(small and large) resolutions and when window is maximized, all items and text should be proportionately displayed. Can you help me with the approach?
Scaling all objects isn't that hard.
Even if you can't get away with build in scaling (panes, autosizing). See for instance GUI's with Dynamic Panes - GDevCon#1 (youtube.com). That needs an update, but that's just details (nobody complained, so I guess nobody uses it, or everybody as able to fixe it 🙄).
Scaling fonts is going to be tedious. Font sizes are not continuous (not linear).
Also, fonts are only accessible though references, and to support all fonts, you'd have to go through the entire reference hierarchy and (recursively) get all font references from your FP objects. For object scaling, I used a trick to avoid that.
I'd think very hard about scaling fonts, or at least all of them.
You could simply tell the user(s) to set a convenient DPI:
(How to change Scaling for Specific Apps in Windows 11 (thewindowsclub.com)).
02-28-2024 04:19 AM - edited 02-28-2024 04:20 AM
Hi tan,
@tan0709 wrote:
Lets say i made a VI in small screen laptop now i want to move to a big monitor, can i use .ini to save the configuration and later made minor changes into the values for big monitor? Or is there another way to move the application from small screen to a big screen without deforming the front panel?
Why do you start new threads when you already got answers for your problem?
You can manipulate any values which you read from your INI file, but I don't see how that would help you with your problem...