GUI的底级问题!
#include <GUIConstants.au3>GUICreate("标题",455,85)
Opt("GUICoordMode",2)
$Button_1 = GUICtrlCreateButton ("第一",15, 10, 100,70)
$Button_2 = GUICtrlCreateButton ("第二",10, -1)
$Button_3 = GUICtrlCreateButton ("第三",10, -1)
$Button_4 = GUICtrlCreateButton ("第四",10, -1)
GUISetState ()
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $Button_1
MsgBox(0,"1","第一")
Case $msg = $Button_2
MsgBox(0,"2","第二")
Case $msg = $Button_3
MsgBox(0,"3","第三")
Case $msg = $Button_4
MsgBox(0,"4","第四")
EndSelect
Wend
要怎么写法才可以把第三个按键去到第二行的开始位置,已不是一直跟着第二个按键后面.就是说第一行按键是第一,第二,第二行的按键就是第三跟第四.请高手指点!
[ 本帖最后由 limeng 于 2009-1-30 13:10 编辑 ] 不明白你想怎?
1 2
3 4
这样吗? 对,就是你写的那样.应该怎么写法才可以. GUICreate("标题", 227, 167)
$Button1 = GUICtrlCreateButton("第一", 8, 8, 100, 70, 0)
$Button2 = GUICtrlCreateButton("第二", 120, 8, 100, 70, 0)
$Button3 = GUICtrlCreateButton("第三", 8, 88, 100, 70, 0)
$Button4 = GUICtrlCreateButton("第四", 120, 88, 100, 70, 0)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case -3
Exit
Case $Button1
MsgBox(0,"1","第一")
Case $Button2
MsgBox(0,"1","第二")
Case $Button3
MsgBox(0,"1","第三")
Case $Button4
MsgBox(0,"1","第四")
EndSwitch
WEnd
页:
[1]