Opened on Apr 29, 2010 at 4:49:06 PM
Closed on Apr 29, 2010 at 5:37:45 PM
Last modified on Apr 29, 2010 at 9:53:42 PM
#1594 closed Feature Request (Rejected)
Allow "-1" default parameters for GUICtrlSetPos()
| Reported by: | Spiff59 | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | Severity: | None | |
| Keywords: | Cc: |
Description
Could you implement "-1" parms (top, left, width, height) for the GUICtrlSetPos() function?
When working with dynamically sized GUI's with dynamically placed controls, it would be very useful to be able to adjust one of the position values without having to have stored the other three values that you wish to leave intact.
Thank you.
Attachments (0)
Change History (3)
comment:1 by , on Apr 29, 2010 at 5:37:45 PM
| Resolution: | → Rejected |
|---|---|
| Status: | new → closed |
| Version: | 3.3.6.1 |
comment:2 by , on Apr 29, 2010 at 9:46:30 PM
Crap! I could swear I tried "Default" as well.
Pardon me wasting your time.
comment:3 by , on Apr 29, 2010 at 9:53:42 PM
"Default" uses the coordinates of the previously referenced control, not the control being specified in the GUICtrlSetPos() function. Is this then a bug fix?

I assume you are completely oblivious to the fact that -1 is a perfectly valid position. I also assume you never bothered to look into the Default keyword which was designed for exactly this situation.