| View previous topic :: View next topic |
| Author |
Message |
Titan
Joined: 11 Aug 2004 Posts: 5390 Location: /b/
|
Posted: Tue Mar 22, 2005 4:25 pm Post subject: Docking Gui Controls |
|
|
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 |
|
 |
Nemroth
Joined: 07 Sep 2004 Posts: 262 Location: France
|
Posted: Tue Mar 22, 2005 6:01 pm Post subject: Re: Docking Gui Controls |
|
|
| 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 |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Tue Mar 22, 2005 8:08 pm Post subject: |
|
|
Dynamically resizable controls are already quite possible, as demonstrated by one of my less popular scripts (if any of mine were ever popular ). But that might not be exactly what you want. |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5390 Location: /b/
|
Posted: Tue Mar 22, 2005 10:19 pm Post subject: |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10480
|
Posted: Tue Mar 22, 2005 10:21 pm Post subject: |
|
|
| 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 |
|
 |
|