AutoXYWH() - Move control automatically when GUI resized

Post your working scripts, libraries and tools
User avatar
joedf
Posts: 6091
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada, Quebec
Contact:

Re: AutoXYWH() - Move control automatically when GUI resized

12 Oct 2016, 15:09

Hmmm, true... it is unspecified. I am assuming it is on a simple "attribution" basis?
tmplinshi
Posts: 1094
Joined: 01 Oct 2013, 14:57

Re: AutoXYWH() - Move control automatically when GUI resized

12 Oct 2016, 23:28

drawback wrote:Are there any license restrictions (for using it in a commercial application) for this one?

NO
egocarib
Posts: 86
Joined: 21 May 2015, 18:21

Re: AutoXYWH() - Move control automatically when GUI resized

20 Oct 2016, 07:24

Using the lastest AHKv2, I get a "no object to invoke" error at the beginning of the outer For loop on this line:

Code: [Select all] [Download] GeSHi © Codebox Plus

If ( cInfo[ctrlID].x = "" ){


I fixed the issue by adding the following line immediately before it:

Code: [Select all] [Download] GeSHi © Codebox Plus

if !IsObject(cInfo[ctrlID]), cInfo[ctrlID] := {}


Not sure if you intended for AHKv2 compatibility or not, but I figured I'd mention the fix in case it's helpful to anyone else. (The AHKv2 documentation actually links to this thread).
User avatar
Alguimist
Posts: 186
Joined: 05 Oct 2015, 16:41

Re: AutoXYWH() - Move control automatically when GUI resized

13 Jan 2018, 11:57

GuiControl, Move moves the control relatively to the parent window. Controls placed in a Tab3 control are then misplaced because the parent window is a child dialog. This issue can be solved with a modified version of AutoXYWH:

Code: [Select all] [Expand] [Download] (AutoXYWH-Mod.ahk)GeSHi © Codebox Plus


Notice the use of the "t" option.
toralf
Posts: 433
Joined: 27 Apr 2014, 21:08
Location: Germany

Re: AutoXYWH() - Move control automatically when GUI resized

13 Jan 2018, 15:59

Thanks for the addition
ciao
toralf

Return to “Scripts and Functions”

Who is online

Users browsing this forum: Delta Pythagorean, Drugwash and 14 guests