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 

I have a GUI question

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
U80
Guest





PostPosted: Thu Mar 06, 2008 12:42 am    Post subject: I have a GUI question Reply with quote

Hello, please see this code posted below. If you click on the inner box, you can pick it up and move it around.... but I want it to be on the outer part. How can this be done effectively? Very Happy

Code:


Gui, -Caption +ToolWindow +0x400000

Gui, Font, S14 Bold, Verdana

Gui, Add, Text, w500 h500 x20 y20 Border gMOVEGUI

Gui, Show, w540 h540

Return



MOVEGUI:

PostMessage, 0xA1, 2,,, A

Return



GuiEscape:

Exitapp

Back to top
Kellianjaxon



Joined: 04 Jan 2008
Posts: 39

PostPosted: Thu Mar 06, 2008 1:02 am    Post subject: Reply with quote

You could make four rectangles to fill the edges like this:

Code:
Gui, -Caption +ToolWindow +0x400000
B = border ; Comment this line out to remove visible borders
Gui, Font, S14 Bold, Verdana

Gui, Add, Text, w20 h520 x0 y0 %B% gMOVEGUI ; left
Gui, Add, Text, w520 h20 x20 y0 %B% gMOVEGUI ; top
Gui, Add, Text, w20 h520 x520 y20 %B% gMOVEGUI ; right
Gui, Add, Text, w520 h20 x0 y520 %B% gMOVEGUI ; bottom
Gui, Add, Text, w500 h500 x20 y20 Border

Gui, Show, w540 h540

Return


MOVEGUI:

PostMessage, 0xA1, 2,,, A

Return


GuiEscape:

Exitapp
Back to top
View user's profile Send private message
U80



Joined: 06 Mar 2008
Posts: 1

PostPosted: Thu Mar 06, 2008 1:25 am    Post subject: Reply with quote

Hey, that is splendid. Thank you! Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
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