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

[GUI管理] _GUICtrlComboBoxEx 在TAB里怎么分不组 已解决

[复制链接]
发表于 2012-3-24 11:07:46 | 显示全部楼层 |阅读模式
本帖最后由 forgetdu 于 2012-3-26 13:58 编辑

请高手指教
原码如下:

#include <GUIConstantsEx.au3>
#include <GuiComboBoxEx.au3>
Example()

Func Example()
        Local $msg

        $hGUI=GUICreate("http://www.xfpm.org/") ; will create a dialog box that when displayed is centered
        GUISetFont(9, 300)

        GUICtrlCreateTab(10, 10, 200, 100)

        GUICtrlCreateTabItem("tab0")
        GUICtrlCreateLabel("label0", 30, 80, 50, 20)
        GUICtrlCreateButton("OK0", 20, 50, 50, 20)
        GUICtrlCreateInput("default", 80, 50, 70, 20)

        GUICtrlCreateTabItem("tab----1")
        GUICtrlCreateLabel("label1", 30, 80, 50, 20)
         _GUICtrlComboBoxEx_Create($hGUI, "", 20,50, 90, 200)
               
        GUICtrlCreateButton("OK1", 120, 50, 50, 20)

        GUICtrlCreateTabItem("tab2")
        GUICtrlSetState(-1, $GUI_SHOW) ; will be display first
        GUICtrlCreateLabel("label2", 30, 80, 50, 20)
        GUICtrlCreateButton("OK2", 140, 50, 50)

        GUICtrlCreateTabItem("") ; end tabitem definition

        GUICtrlCreateLabel("label3", 20, 130, 50, 20)

        GUISetState()

        ; Run the GUI until the dialog is closed
        While 1
                $msg = GUIGetMsg()

                If $msg = $GUI_EVENT_CLOSE Then ExitLoop
        WEnd
EndFunc   ;==>Example
发表于 2012-3-24 15:32:18 | 显示全部楼层
揣摩不透楼主的标题啊,难道是来做广告的/
发表于 2012-3-24 19:06:21 | 显示全部楼层
udf区有个tab上建ip的例子,一个道理,自己琢磨
 楼主| 发表于 2012-3-25 08:24:39 | 显示全部楼层
谢谢 元老指点。。。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-30 17:37 , Processed in 0.128344 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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