QQ386263723 发表于 2014-1-19 07:13:23

求助,如何使按纽1 和2 和3来回切换,

如何使按纽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

joyran 发表于 2014-1-19 08:56:49

GUICtrlCreatePic(@ScriptDir & "\images\bg_sr.jpg", $WinWidth - 3, $bannerHeight, 2, $TabHeight)
GUICtrlSetImage($ico[$k], @ScriptDir & "\images\app\" & $k & ".ico")
页: [1]
查看完整版本: 求助,如何使按纽1 和2 和3来回切换,