Sign in to follow this  
Followers 0
jaywalk

Anchoring controls

3 posts in this topic

.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?

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

I completely overlooked this function, thanks.

Share this post


Link to post
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
Sign in to follow this  
Followers 0