AutoHotkey Community

It is currently May 27th, 2012, 11:33 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: fix the window size
PostPosted: October 20th, 2009, 1:10 am 
Offline

Joined: November 7th, 2006, 2:30 pm
Posts: 24
I am writing a widget, but i met a problem of fixing the window size. I want to fix the window size and do not want the user to change the size.

The code of window is:
Code:
gui,-Caption +0x40000 +alwaysontop +ToolWindow


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 20th, 2009, 1:12 am 
Offline

Joined: June 12th, 2009, 11:36 pm
Posts: 1173
Location: Indianapolis IN, USA
What's the problem?

_________________
www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 20th, 2009, 1:26 am 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
-Resize ?

_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"
Image
Antonio França
My stuff: Google Profile


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 20th, 2009, 3:53 am 
Offline

Joined: November 7th, 2006, 2:30 pm
Posts: 24
yes, user cannot resize the window.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 20th, 2009, 5:55 am 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
Well, +0x40000 enables the resizing, as stated here.
Notice that: 0x40000 = Resize = WS_SIZEBOX = WS_THICKFRAME

_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"
Image
Antonio França
My stuff: Google Profile


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 20th, 2009, 6:44 am 
Offline

Joined: November 7th, 2006, 2:30 pm
Posts: 24
but I need thickframe, can anyone tell me how?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 21st, 2009, 11:59 am 
Offline

Joined: July 9th, 2009, 9:25 pm
Posts: 120
Code:
Gui, -Caption +Resize +AlwaysOnTop +ToolWindow
Gui, Show, w400 h400

OnMessage(0x46, "WindowPosChanging")
Return

WindowPosChanging(wParam, WinPos){
   NumPut(Numget(WinPos+24)|1, WinPos+24)   ; WinPos->flags |= SWP_NOSIZE
}
?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 21st, 2009, 7:03 pm 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
What a funny beahviour! Window can only be moved up and left.

_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"
Image
Antonio França
My stuff: Google Profile


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 23rd, 2009, 4:19 am 
Offline

Joined: November 7th, 2006, 2:30 pm
Posts: 24
Thank you


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 20 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group