碰到一个问题,就是GUI中添加了菜单控件,默认标签页中的内容就显示不出来,这时点击其它标签页,再点击默认的标签页内容又会出来。
不添加菜单控件是没有问题的,麻烦高手看下哪里出了问题!或者其它方式实现菜单控件和标签页控件并存,谢谢
代码如下:#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 326, 271, 326, 185)
$File = GUICtrlCreateMenu("文件(&F)")
$Test = GUICtrlCreateMenuItem("测试(&F)", $File)
GUICtrlCreateMenuItem("", $File)
$Exit = GUICtrlCreateMenuItem("退出(&X)", $File)
$About = GUICtrlCreateMenu("关于(&A)")
$Tab1 = GUICtrlCreateTab(16, 20, 289, 193)
GUICtrlCreateTabItem("111")
$Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 56, 70, 97, 17)
$Button1 = GUICtrlCreateButton("Button1", 64, 100, 75, 25)
$Input1 = GUICtrlCreateInput("Input1", 56, 140, 129, 21)
GUICtrlCreateTabItem("222")
$Input2 = GUICtrlCreateInput("Input2", 56, 140, 129, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|