jaywalk Posted October 14, 2009 Share Posted October 14, 2009 .Net gives controls an anchor so that the control doesn't change positioning when you start modifying the size of the form. So right now I have two buttons side by side in an initially small form. When I maximize the form the buttons spread far away from one another. I've looked through the styles but nothing is jumping out at me, is there a way to "anchor" controls or something similar? Link to comment Share on other sites More sharing options...
Mat Posted October 14, 2009 Share Posted October 14, 2009 See GUICtrlSetResizing. $GUI_DOCKALL 802 (2+32+256+512) so the control will not move during resizing Basicly: #include<GUIConstantsEx.au3> GUICtrlCreateButton ("My Button", 2, 2, 80, 20) GUICtrlSetResizing (-1, $GUI_DOCKALL) Mat AutoIt Project Listing Link to comment Share on other sites More sharing options...
jaywalk Posted October 14, 2009 Author Share Posted October 14, 2009 I completely overlooked this function, thanks. 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