找回密码
 加入
搜索
查看: 3144|回复: 3

[系统综合] 关于点击按钮时,清空页内显示的内容,显示按钮2的内容如何实现?

[复制链接]
发表于 2015-5-6 11:49:45 | 显示全部楼层 |阅读模式
本帖最后由 木头人 于 2015-5-6 11:50 编辑
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <Constants.au3>

$hGUI = GUICreate("New Window", 468, 324, -1, -1)
$Button1 = GUICtrlCreateButton("Button", 29, 43, 80, 29)
$Button2 = GUICtrlCreateButton("Button", 126, 41, 73, 35)
$Button3 = GUICtrlCreateButton("Button", 223, 42, 91, 42)
$Button4 = GUICtrlCreateButton("Button", 347, 44, 89, 30)
GUISetState()
While 15
        
$hMsg = GUIGetMsg()
        Switch $hMsg
                Case -3
                        Exit
                Case $Button1
                        _xfmd()
                Case $Button2
                        _xfmc()
                Case $Button3
                        _xfme()
                Case $Button4
                        _xfmf()
        EndSwitch
        
WEnd

Func _xfmd()
        Dim $t51
        $t51 = GUICtrlCreateLabel("   das2r43rsdf23rsdfsdfsdxvxcv", 16, 110, 550, 0)
EndFunc   ;==>_xfmd

Func _xfmc()
        Dim $t51

        $t51 = GUICtrlCreateLabel("    DLKJSDAKJLFASDKJLKLJDFSAKLJFDSA", 16, 110, 550, 0)
        $t51 = GUICtrlCreateLabel("hahhahhahh:", 16, 190, 90, 17)
        GUICtrlSetFont(-1, 9, 400, 4, "")
        GUICtrlSetColor(-1, 0x0000FF)
        GUICtrlSetCursor(-1, 0)
EndFunc   ;==>_xfmc

Func _xfme()
        Dim $t51
        $t51 = GUICtrlCreateLabel("   我是大程序呵哥哈哈全", 16, 110, 550, 0)
        $t51 = GUICtrlCreateLabel("hahhahhahh:", 16, 150, 90, 17)
EndFunc   ;==>_xfmd

Func _xfmf()
        Dim $t51
        $t51 = GUICtrlCreateLabel("   我小程序哈全", 16, 110, 550, 0)
EndFunc   ;==>_xfmd
这样做的话,变成点击按钮2或3,4按钮时,原来1按钮的内容还在,如何实现在点击其它按钮时清空原来显示的内容呢》?
 楼主| 发表于 2015-5-6 18:34:14 | 显示全部楼层
没人理我。。。
发表于 2015-5-6 18:54:12 | 显示全部楼层
发表于 2015-5-6 18:54:22 | 显示全部楼层

评分

参与人数 1金钱 -20 收起 理由
afan -20 警告,禁止纯表情!

查看全部评分

您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-1 17:36 , Processed in 0.092464 second(s), 27 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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