|
发表于 2014-6-17 13:47:40
|
显示全部楼层
回复 16# qsy666888
你再试试
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
Global $width = 400, $height = 300
#region ### START Koda GUI section ### Form=
Global $Form1 = GUICreate("Form1", 428, 399)
GUISetBkColor(0xECE9D8)
Global $Button1 = GUICtrlCreateButton(" > ", $width - 96, $height - 284, 75, 22)
GUICtrlSetFont($Button1, 12, 400, 0, "微软雅黑")
Global $Button3 = GUICtrlCreateButton(" ↓ ", 304, 46, 75, 22)
GUICtrlSetFont($Button3, 12, 400, 0, "微软雅黑")
Global $Group1 = GUICtrlCreateGroup("", $width - 374, $height - 226, 185, 177)
GUICtrlSetBkColor(-1, 0xECE9D8); 背景色
GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
Global $Button2 = GUICtrlCreateButton("返回", $width - 350, $height - 194, 99, 22)
Global $Label1 = GUICtrlCreateLabel("Label1", $width - 326, $height - 146, 52, 24)
GUICtrlSetFont($Label1, 12, 400, 0, "微软雅黑")
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#endregion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
ControlMove($Form1, "", $Group1, $width - 194, $height - 226)
ControlMove($Form1, "", $Button2, $width - 170, $height - 194)
ControlMove($Form1, "", $Label1, $width - 146, $height - 147)
Case $Button2
ControlMove($Form1, "", $Group1, $width - 374, $height - 226)
ControlMove($Form1, "", $Button2, $width - 350, $height - 194)
ControlMove($Form1, "", $Label1, $width - 326, $height - 147)
GUICtrlSetFont($Label1, 12, 400, 0, "微软雅黑")
Case $Button3
ControlMove($Form1, "", $Group1, $width-374, $height-116)
ControlMove($Form1, "", $Button2, $width-350, $height-84)
ControlMove($Form1, "", $Label1, $width - 326, $height - 40)
EndSwitch
WEnd |
|