如何使按纽1 和2 和3来回切换,并且在文本里面显示不同的图片#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("我的一个程序", 601, 434, -1, -1)
$Group1 = GUICtrlCreateGroup("文本", 0, 88, 601, 265)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group2 = GUICtrlCreateGroup("第二页", 0, 352, 601, 81)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Pic1 = GUICtrlCreatePic("F:\au3--++\ziyouren.bmp", 0, 0, 604, 92)
$Button1 = GUICtrlCreateButton("1", 0, 56, 73, 33)
$Button2 = GUICtrlCreateButton("2", 72, 56, 73, 33)
$Button3 = GUICtrlCreateButton("3", 144, 56, 81, 33)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|