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 

Docking Gui Controls

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



Joined: 11 Aug 2004
Posts: 5390
Location: /b/

PostPosted: Tue Mar 22, 2005 4:25 pm    Post subject: Docking Gui Controls Reply with quote

To make the sizing and positioning of controls easier, docking would be a great advantage as opposed to GuiSize and own methods of positioning manually.

For those who don't know, docking in these terms mean keeping the control the same distance from the respective window boundary.

Suggestion:
+DockLRTB (Left Right Top Bottom)
Docking from Left and Top might not have any effect though.

Example:
Gui, +Resize
Gui, Add, Edit, +DockRB w250 h125 x25 y50
Gui, Show, w300 h150

Keeps the edit box always 50px narrower than the window and 25px shorter than the window's height.

Comments?
_________________



Last edited by Titan on Tue Mar 22, 2005 10:56 pm; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website
Nemroth



Joined: 07 Sep 2004
Posts: 262
Location: France

PostPosted: Tue Mar 22, 2005 6:01 pm    Post subject: Re: Docking Gui Controls Reply with quote

Titan wrote:
For those who don't know, docking in these terms mean keeping the control the same distance from the respective window boundary.


If the idea is to keep a distance always identical between every control, I don't think it's a good idea because when a window is augmented, controls would stay in the same place !!!...

But if the idea is, as I think it is, to make sure that the spacing out between controls and between controls and the window's borders is proportionaly always the same, even when the window expands, I wholly agree : the control on right stay on the right, the one in the middle stay in the middle of the window,...

I think it would be good, il the window size can be modified, to have a minimum size for the window so that the controls don't overlap...

A last word : I'm perfectly agree with the "Gui, Submit, Update" proposition in a precedent topic.
Back to top
View user's profile Send private message
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Tue Mar 22, 2005 8:08 pm    Post subject: Reply with quote

Dynamically resizable controls are already quite possible, as demonstrated by one of my less popular scripts (if any of mine were ever popular Laughing). But that might not be exactly what you want.
Back to top
View user's profile Send private message
Titan



Joined: 11 Aug 2004
Posts: 5390
Location: /b/

PostPosted: Tue Mar 22, 2005 10:19 pm    Post subject: Reply with quote

If I'm not understanding you wrongly I think you didn't get what I was trying to say: an option to dock controls - especially for huge edit fields or pictures in gui's which where you'd like the window to be resizeable without having to do manual calculations and GuiControl size adjustments to keep the control respectively proportional to the window's size as initally defined.

I thought it was a good idea because these features are built into most common gui handling languages.
_________________

Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Tue Mar 22, 2005 10:21 pm    Post subject: Reply with quote

I like the idea of docking and have added it to the GUI to-do list. If anyone has more ideas about how it should behave and what its syntax should be, please post them here.
Back to top
View user's profile Send private message Send e-mail
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