LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

autoscaling user interface to screen resolution ??

hallo, (using LabWindows/CVI 6.0)

Is there a possibility that the PANEL adapts to the screen resolution?

my problem is, that the program have to run on screens with 600x800 and 1024x762 pixels.
the program should have to use full screen.

thx
Florian
0 Kudos
Message 1 of 25
(6,846 Views)
You can activate the Scale contents on resize option on the "Other attributes..." subpanel in "Edit Panel" window. With this option activated resizing the panel results in automatical adjustment of controls dimensions.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 25
(6,840 Views)
Hi Greber,

I know on 7.0 you can use the following:

/* Make sure the contents scale when the panel is resized to a different resolution. This can also be done on the .uir file*/
SetPanelAttribute (PANEL, ATTR_SCALE_CONTENTS_ON_RESIZE, 1);

/* Re-adjust panels for 100% screen resolution */
SetPanelAttribute (PANEL, ATTR_WINDOW_ZOOM, VAL_MAXIMIZE);

Does anyone know a quick way to search for functions in previous versions of CVI to see if they exist? Having this ability would make me feel more confident about trying to help people with different versions of the program than me.
0 Kudos
Message 3 of 25
(6,840 Views)
Florian,

In the UI Editor, edit your panel, select Other Attributes, and change the Resolution Adjustment from 0 to 100. This should enable your panel and all its controls to scale itself automatically so that it takes up the same area of the screen, regardless of the screen resolution in which it is loaded.

Luis
NI
0 Kudos
Message 4 of 25
(6,823 Views)
Do items have to be unlocked for this to work properly?
0 Kudos
Message 5 of 25
(6,634 Views)
hmm, looks like the tabs panel doesn't like to play nice with the autoscaler. Maybe I'm missing something.

I went to File>Vi Properties and changed it under Window Size options. Is this the right place?
0 Kudos
Message 6 of 25
(6,632 Views)
I think you might be posting this in the wrong forum. You are using LabVIEW, correct? This is the forum for LabWindows/CVI, so that's what this thread is referring to.

Luis
0 Kudos
Message 7 of 25
(6,629 Views)
woops... should pay attention to that. I usually do a general search through everything. Will have to remember to limit my searches
0 Kudos
Message 8 of 25
(6,621 Views)
Using LabWindows/CVI 8.0.1.
 
I have modified the "Other Attributes"-Resolution to 100% and changing to different resolutions doesn't appear to resize everything.  Anyone have any ideas or experience with this?
 
 
0 Kudos
Message 9 of 25
(6,221 Views)

Could you attach a couple of screenshots that illustrate this? That will make it easier to diagnose the problem.

Luis

0 Kudos
Message 10 of 25
(6,207 Views)