 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
U80 Guest
|
Posted: Thu Mar 06, 2008 12:42 am Post subject: I have a GUI question |
|
|
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?
| 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
|
Posted: Thu Mar 06, 2008 1:02 am Post subject: |
|
|
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 |
|
 |
U80
Joined: 06 Mar 2008 Posts: 1
|
Posted: Thu Mar 06, 2008 1:25 am Post subject: |
|
|
Hey, that is splendid. Thank you!  |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|