 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
NLI-Conquer Guest
|
Posted: Sun Feb 24, 2008 2:34 am Post subject: (Very Small Request) Gui, Add Command |
|
|
I really like how you can type "wp" for width of previous, and how you can type "hp+200" for the height of the previous (plus 200). However, I'd like to be able to do stuff like this:
Gui, Add, Groupbox, yp xp+wp+5
I know its a pretty small request, but even so; thank you for taking the time to read and consider.  |
|
| Back to top |
|
 |
Guest
|
Posted: Sun Feb 24, 2008 6:19 am Post subject: Re: (Very Small Request) Gui, Add Command |
|
|
To add to his request (I'm not him)...I like how x+0 goes to the "right of last"...but I want an x+m (or any syntax) to mean "right of last plus margin" (x+m+5 should work too...to mean margin, plus more)...margin being set by Gui, Margin...ys can do "right of last section" plus margin...but sections are very limited, in you can only reference the last one...perhaps named sections would be good too...
| Code: | ;//Syntax: Gui, Add, Text, Section<Name>, Example
Gui, Add, Text, SectionTest, Test
Gui, Add, Edit, ysTest
Gui, Add, Text, Sectioning, ing
Gui, Add, Edit, ysing
Gui, Add, Text, ysTest, Right of Section Test, not ing |
...if I coded that right (since I can't test), then I hope you get what I mean...Section takes a name (with no spaces), xs & ys take a matching name...
I'd also like an = operator (since without it it'd be ambiguous) to assign multiple things at once...
| Code: | | Gui, Add, ListView, gv=ListView_LongListViewName |
...instead of...
| Code: | | Gui, Add, ListView, gListView_LongListViewName vListView_LongListViewName |
...I almost always use the same string for the g & v-options... |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6560 Location: Pacific Northwest, US
|
Posted: Sun Feb 24, 2008 11:03 pm Post subject: Re: (Very Small Request) Gui, Add Command |
|
|
| NLI-Conquer wrote: | Gui, Add, Groupbox, yp xp+wp+5
|
That is the same as
| Code: |
Gui, Add, Groupbox, yp x+5
|
that mode makes it add 5 to the right side of the previous control, so the width is already accounted for. _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| 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
|