oglop Posted June 17, 2008 Share Posted June 17, 2008 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 More sharing options...
NELyon Posted June 17, 2008 Share Posted June 17, 2008 If you set the GUI Style to $WS_SIZEBOX, it does it for you. Link to comment Share on other sites More sharing options...
oglop Posted June 17, 2008 Author Share Posted June 17, 2008 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 More sharing options...
NELyon Posted June 17, 2008 Share Posted June 17, 2008 No problem Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now