找回密码
 加入
搜索
查看: 1538|回复: 1

[AU3基础] 求助,如何使按纽1 和2 和3来回切换,

[复制链接]
发表于 2014-1-19 07:13:23 | 显示全部楼层 |阅读模式
如何使按纽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
发表于 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")
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-10-4 17:27 , Processed in 0.076781 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表