|
发表于 2014-6-17 12:12:58
|
显示全部楼层
回复 11# qsy666888
坐标问题,我又试了一下,$Button1跟$Button2不会,转$Button3就又出现问题
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
Global $Form1 = GUICreate("Form1", 428, 399)
GUISetBkColor(0xECE9D8)
Global $Button1 = GUICtrlCreateButton("Button1", 304, 16, 75, 25)
Global $Button3 = GUICtrlCreateButton("Button3", 304, 46, 75, 25)
Global $Group1 = GUICtrlCreateGroup("", 26, 74, 185, 177)
GUICtrlSetBkColor(-1, 0xECE9D8); 背景色
GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
Global $Button2 = GUICtrlCreateButton("Button2", 50, 106, 99, 25)
Global $Label1 = GUICtrlCreateLabel("Label1", 74, 154, 52, 24)
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 , 206, 74)
ControlMove($Form1,"",$Button2 , 230, 106, 99, 25)
ControlMove($Form1,"",$Label1 , 254, 153)
Case $Button2
ControlMove($Form1,"",$Group1 , 26, 74, 185, 177)
ControlMove($Form1,"",$Button2 , 50, 106, 99, 25)
ControlMove($Form1,"",$Label1 , 74, 153, 52, 24)
Case $Button3
ControlMove($Form1,"",$Group1 , 26, 184)
ControlMove($Form1,"",$Button2 , 50, 216, 99, 25)
ControlMove($Form1,"",$Label1 , 74, 260)
EndSwitch
WEnd |
|