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 

(Very Small Request) Gui, Add Command

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
NLI-Conquer
Guest





PostPosted: Sun Feb 24, 2008 2:34 am    Post subject: (Very Small Request) Gui, Add Command Reply with quote

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. Smile
Back to top
Guest






PostPosted: Sun Feb 24, 2008 6:19 am    Post subject: Re: (Very Small Request) Gui, Add Command Reply with quote

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

PostPosted: Sun Feb 24, 2008 11:03 pm    Post subject: Re: (Very Small Request) Gui, Add Command Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List 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