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

[GUI管理] 一个关于Tab隐藏的问题,隐藏得不全面

[复制链接]
发表于 2012-7-8 22:40:41 | 显示全部楼层 |阅读模式
本帖最后由 athland5013 于 2015-2-6 01:05 编辑
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 615, 438, 192, 124)

$Tab1 = GUICtrlCreateTab(64, 32, 481, 345)

$TabSheet1 = GUICtrlCreateTabItem("TabSheet1")
$Button1 = GUICtrlCreateButton("Button1", 120, 96, 137, 73)
$Button2 = GUICtrlCreateButton("Button2", 312, 96, 137, 73)
$List1 = GUICtrlCreateList("", 120, 200, 329, 149)
$TabSheet2 = GUICtrlCreateTabItem("TabSheet2")
$Button3 = GUICtrlCreateButton("Button3", 180, 196, 137, 73)
$Button4 = GUICtrlCreateButton("Button4", 180, 296, 137, 73)
$TabSheet3 = GUICtrlCreateTabItem("TabSheet3")

GUICtrlCreateTabItem("")

GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

MsgBox('','','显示窗口')

GUICtrlSetState ($Tab1, $GUI_HIDE )

MsgBox('','','隐藏$Tab1,但是对应页面上的控件却没有隐藏')

GUICtrlSetState ($Tab1, $GUI_SHOW )

MsgBox('','','显示$Tab1')

ControlHide($Form1,'',$Tab1)

MsgBox('','','用ControlHide隐藏$Tab1,但依然是是对应页面上的控件没能隐藏')

GUICtrlDelete($Tab1)

MsgBox('','','用GUICtrlDelete则可以删除整个$Tab1,')

MsgBox('','','请教用什么方法可以令整个$Tab1及其在包含的控件隐藏,当然代码越简单越好')

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit

        EndSwitch
WEnd
大家运行一下这段代码,我在w732下$Button1 ,$Button2还是留在页面,无法隐藏

请教用什么方法可以令整个$Tab1及其在包含的控件隐藏
 楼主| 发表于 2012-7-10 00:22:56 | 显示全部楼层
这个是AU3的bug吗,高手们来发表下意见啊~~~~
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-4-29 18:10 , Processed in 0.072386 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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