找回密码
 加入
搜索
查看: 2349|回复: 7

[GUI管理] [已解决] GUICtrlCreateMenu 与 GUICtrlCreateTab 组合的怪现象

  [复制链接]
发表于 2015-9-14 14:33:20 | 显示全部楼层 |阅读模式
本帖最后由 chishingchan 于 2015-9-14 19:31 编辑
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <EditConstants.au3>
#include <StaticConstants.au3>

GUICreate("标题",640,480,-1,-1)
$filemenu=GUICtrlCreateMenu("菜单")
GUICtrlCreateMenuItem("项目",$filemenu)

GUICtrlCreateTab(1,1,640,460)
GUICtrlCreateTabItem("[1]")
GUICtrlCreateGroup("组名称",5,25,313,100)
GUICtrlCreateLabel("Label1: ",14,45)
GUICtrlCreateInput(":",69,42,240,18)
GUICtrlCreateLabel("Label2: ",14,65)
GUICtrlCreateLabel("Label3: ",14,85)
GUICtrlCreateTabItem("[2]")
GUICtrlCreateTabItem("[3]")
GUICtrlCreateTabItem("[4]")
GUISetState()

Do
        Local $msg = GUIGetMsg()
Until $msg = $GUI_EVENT_CLOSE
此脚本运行后 [1 ] 页没有内容, 打开其他页再打开 [1] 页后内容才出来! 请高手指教一下, 谢谢!
 楼主| 发表于 2015-9-14 16:05:35 | 显示全部楼层

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2015-9-14 17:30:17 | 显示全部楼层
本帖最后由 afan 于 2015-9-14 17:31 编辑

(3.3.6.x) 和 (3.3.10.x 及其之后)的版本正常,中间版本有这问题。
 楼主| 发表于 2015-9-14 19:29:37 | 显示全部楼层
回复 3# afan


    原来如此! 我用的版本是 3.3.9.21.
发表于 2015-9-15 06:55:35 | 显示全部楼层
学习了。。
发表于 2015-9-17 16:41:24 | 显示全部楼层
3.3.8.1  测试正常
发表于 2015-9-17 16:42:13 | 显示全部楼层
忘了说了   最后加GUICtrlCreateTabItem("")
发表于 2015-9-17 16:42:48 | 显示全部楼层
回复 3# afan


    最后加GUICtrlCreateTabItem("")  好像就正常了。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-18 16:15 , Processed in 0.100892 second(s), 25 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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