 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
jaco0646
Joined: 07 Oct 2006 Posts: 459 Location: MN, USA
|
Posted: Fri Mar 14, 2008 8:55 pm Post subject: Positioning GUI controls: xp & yp |
|
|
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 |
|
 |
Rhys
Joined: 17 Apr 2007 Posts: 618 Location: Florida
|
Posted: Fri Mar 14, 2008 10:01 pm Post subject: |
|
|
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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|