LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing CVI Controls size by Screen Size

Solved!
Go to solution

Hi, 

 

I'm trying to do something and i don't know if it's posssible ,

 

I have panelMain as my panel handle , when i start my program and i show my panel i'm maximizing the soft screen to maximum with :

 

SetPanelAttribute(panelMain,ATTR_WINDOW_SIZE,VAL_MAXIMIZE) i do so in order to make this soft be generic for every screen size...

 

but when i do so all the buttons go to the left of the screen while leaving me a blank gray surface in the right.

 

what i want to know is can i make a generic panel like in the office software or other software which the buttons change this size according to the screen size ?

 

if you have other solution it will be grate also...

 

thank you

-----------------------------------------
Kobi Kalif
Software Engineer

0 Kudos
Message 1 of 4
(4,532 Views)

did you have a look at ATTR_SCALE_CONTENTS_ON_RESIZE?

0 Kudos
Message 2 of 4
(4,529 Views)

thanks for the answer ,

 

yes i tried it  but situation is different.

 

ATTR_SCALE_CONTENTS_ON_RESIZE affects when you resize your window with the mouse or something like that...

 

i want my soft to be automated maximized on the screen and the button to be scaled according to window size..

-----------------------------------------
Kobi Kalif
Software Engineer

0 Kudos
Message 3 of 4
(4,526 Views)
Solution
Accepted by topic author Kobi_K

Well, this is not exactly true: according to the help for this attribute:

Specifies whether the contents are scaled when the panel is resized. This applies to programmatic resizing, resizing in the User Interface Editor, and resizing by the end-user.

 

An alternatirve is to set Resolution adjustment property in the UIR editor for the panel to 100%: this should ensure the panel is automatically scaled to screen resolution regardless its original 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?
Message 4 of 4
(4,508 Views)