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 

Control Anchoring v4 for resizing windows
Goto page Previous  1, 2, 3 ... 10, 11, 12
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Solar



Joined: 03 May 2009
Posts: 43
Location: Ohio, USA

PostPosted: Tue May 26, 2009 4:53 pm    Post subject: Reply with quote

This works:
Code:
DetectHiddenWindows, On
newSize = w300 h200
Gui, +Resize +MinSize +LastFound
hGui := WinExist()
Gui, Add, ListView, w100 h50 vLV
Gui, Show, Hide ; set MinSize
WinWait, ahk_id %hGui%
Gui, Show, %newSize%
Return

GuiSize:
   Anchor("LV", "wh")
Return

GuiEscape:
GuiClose:
   ExitApp
Back to top
View user's profile Send private message AIM Address MSN Messenger
krisj209



Joined: 16 Nov 2007
Posts: 3
Location: California, USA

PostPosted: Fri Jun 19, 2009 9:04 am    Post subject: Titan, you are the man! Reply with quote

Thank you for this beautiful script!

You saved me so much time and frustration! Very Happy
_________________
Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened.

-Sir Winston Churchill
Back to top
View user's profile Send private message
jballi



Joined: 01 Oct 2005
Posts: 537
Location: Texas, USA

PostPosted: Sat Jul 25, 2009 3:01 am    Post subject: Reply with quote

I just came across the need to use the "Reset" feature of this function (reset by passing only the first parameter) but it doesn't appear to work with the latest version (v4.56). I recall (OK, it's been a while) that this worked in some previous versions of the function. Is is just me or did this option just go away?

To confirm that this option doesn't work anymore, just run the example (first post of this thread) with the latest version of the function (also available in the first post). When running the example script, press F10 to perform the Reset example.

Thank you for your consideration.
Back to top
View user's profile Send private message Send e-mail
tuna



Joined: 03 Oct 2007
Posts: 59
Location: Bristol, England

PostPosted: Sun Jan 31, 2010 6:44 am    Post subject: Reply with quote

Yeah, second that.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3 ... 10, 11, 12
Page 12 of 12

 
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