AutoHotkey Community

It is currently May 27th, 2012, 12:05 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: January 29th, 2011, 5:43 pm 
Offline

Joined: August 30th, 2007, 9:36 pm
Posts: 90
Hi,

I'm totatlly stumped. What I'm trying to learn is this: When I press the Maximize button or resize the GUI I would love to make the GUI controls expand and contract evenly as the GUI is maximized or resized.

I'm totally stuck. Could some please help me with this. I have an example code for my GUI below:

Code:

Gui, Add, GroupBox, x12 y30 w230 h290 , My Group Box 1
Gui, Add, Edit, x22 y50 w210 h260 vText1,
Gui, Add, GroupBox, x252 y30 w210 h110 , My Group Box 2
Gui, Add, Edit, x262 y50 w190 h80 vText2,
Gui, Add, Button, x292 y150 w140 h40 , Button
Gui, Add, Text, x262 y210 w190 h100 , Test to change controls when maximized
Gui, Show, x402 y177 h379 w479, Maximize Test
Gui, +LastFound +Resize
Return

GuiClose:
Exitapp


Thank you in advance.
Chip


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 29th, 2011, 6:20 pm 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
Related:
1) Attach
--- http://www.autohotkey.com/forum/viewtopic.php?t=48298
2) Anchor
--- http://www.autohotkey.com/forum/viewtopic.php?t=4348
3) CenterControl() & ControlSetAxis()
--- http://www.autohotkey.com/forum/viewtopic.php?t=63686

_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"
Image
Antonio França
My stuff: Google Profile


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey, Yahoo [Bot] and 18 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group