Jump to content

what's the preferable way of defining adjustable gui


oglop
 Share

Recommended Posts

i'm a new user, and i found that in the examples\GUI\SampleControls.au3

the first few lines say

; AutoIt 3.0.103 example
; 17 Jan 2005 - CyberSlug
; This script shows manual positioning of all controls;
;   there are much better methods of positioning...

then what is the preferable way of positioning ui elements ?

GuiCtrlCreateLabel("Sample pic", 75, 1, 53, 15)

instead of hardwiring absolute values like this, is there anyway to use relative values ? so when the window size changes, the ui will stretch accrodingly to match ? ( i mean adjustable )

Link to comment
Share on other sites

If you set the GUI Style to $WS_SIZEBOX, it does it for you.

wow, that was an instant answer.

never thought it could be so easy. it seems by using this style, the ui elements will stretch proportionally .

Thank u man. :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...