01-17-2011 01:13 AM
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
Solved! Go to Solution.
01-17-2011 01:37 AM
did you have a look at ATTR_SCALE_CONTENTS_ON_RESIZE?
01-17-2011 01:57 AM
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..
01-17-2011 06:14 AM
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.