AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Positioning GUI controls: xp & yp

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
jaco0646



Joined: 07 Oct 2006
Posts: 459
Location: MN, USA

PostPosted: Fri Mar 14, 2008 8:55 pm    Post subject: Positioning GUI controls: xp & yp Reply with quote

This code places one control on top of another.
Code:
Gui, Add, Button,, button1
Gui, Add, Button, yp, button2
Gui, Show

At first, the Help File made me think it was a bug.
AHK Help File wrote:
Omitting either X, Y or both is useful to make a GUI layout automatically adjust to any future changes you might make to the size of controls or font.

Now I think it might be intentional, since the Help File confirms that statement in the xm/ym and xs/ys paragraphs (which work as expected in the previous code), but not the xp/yp paragraph.

Why not make the behavior consistent and use it for xp/yp as well? Shouldn't that code start a new column with button2?
_________________
http://autohotkey.net/~jaco0646/


Last edited by jaco0646 on Fri Mar 14, 2008 10:09 pm; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website
Rhys



Joined: 17 Apr 2007
Posts: 618
Location: Florida

PostPosted: Fri Mar 14, 2008 10:01 pm    Post subject: Reply with quote

I think it's by design but I'm not sure - I think that AHK always wants to create the next control directly below the last one. This one behaves the same way which is kind of funny:
Code:
Gui, Add, Button,, button1
Gui, Add, Button,xp, button2
Gui, Show

_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group