Jump to content
Sign in to follow this  
jaywalk

Anchoring controls

Recommended Posts

jaywalk

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

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.