03-07-2023 01:38 PM - edited 03-07-2023 01:39 PM
The front panel looks good on my big laptop as shown below. However, I tried creating an executable to use it on the small laptop, the executable does not look good at all. How do I fix this issue?
On my big laptop:
On the small laptop:
My configuration:
As you can see below, things don't look right.
When I tried to follow this link https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000kHoKSAU&l=en-US
I get this on the small laptop. As you can see, I can't see everything on one screen though everything looks good now. I have to scroll left or right
My configuration:
How
03-07-2023 02:05 PM
Now you get to understand what all you need to consider while developing an application.
By any chance, did you enable scale with pane for the controls? I would disable them, so that the scrollbars popup leaving the controls at same size irrespective of the monitor.
To develop a proper application that works with a variety of monitor sizes, you need to implement quite chunk of pane resizing, and control resizing in the code to work around the weird scaling issues.
03-07-2023 03:57 PM
Scale with pane is disabled for all controls and indicators
03-07-2023 04:20 PM
Looks like you have modified/customized the UI without considering the implication of each decision it would result in a smaller monitor.
In the current state, I would recommend starting from scratch and for each implementation consider how it would show up in a small monitor.
Could you please share the VI?
03-07-2023 04:39 PM
Could your problem be a font size change?
I ran into this problem in the past when compiled LabVIEW front panels changed font size.
There were some *.ini settings for the compiled code that fixed it for me.
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000fynASAQ&l=en-US
03-08-2023 08:13 AM
I think also if the scaling on the two different computers are different, you may run into issues like this.
03-08-2023 08:40 AM
It mainly (or atleast for starters) look like a font scaling issue. Change the windows font scaling or add the appropriate keys to the applications ini.
Stuff like
appfont = Tahoma 9 (assuming it'll scale up)