欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

基 礎(chǔ) 函 數(shù) 參 考


GUICtrlCreateTabItem

創(chuàng)建標(biāo)簽選項(xiàng)頁(TabItem)控件.

GUICtrlCreateTabItem ( "文本" )

參 數(shù)

文本 控件顯示的文本.

返 回 值

成功: 返回控件標(biāo)識符(控件ID).
失敗: 返回 0.

備 注

使用 GUICtrlUpdate... 設(shè)置其它信息.

要讓指定標(biāo)簽選項(xiàng)頁優(yōu)先顯示, 使用 GUICtrlSetState(-1,$GUI_SHOW) 語句. 參考例子.

要結(jié)束標(biāo)簽控件定義, 則設(shè)置最后一個(gè)標(biāo)簽選項(xiàng)頁為空文本即可. 這個(gè)標(biāo)簽選項(xiàng)頁將不被繪制 (代碼太多了 ...).

當(dāng)使用高級模式, GUICtrlRead($tab,1) 將返回控件 ID, 而不是標(biāo)簽選項(xiàng)頁的索引.

要?jiǎng)?chuàng)建新控件到現(xiàn)有標(biāo)簽選項(xiàng)頁上, 使用 GUISwitch($hWin,$tabitem).
不要忘記使用 GUICtrlCreateTabItem("") 語句結(jié)束標(biāo)簽選項(xiàng)頁的創(chuàng)建.

相 關(guān) 函 數(shù)

GUICtrlSetState, GUISwitch, GUIGetMsg, GUICtrlRead, GUIEventOptions (Option), GUICtrlCreateTab

函 數(shù) 示 例


#include <GUIConstantsEx.au3>

Example()

Func Example()
    Local $tab
    Local $msg

    GUICreate("我的標(biāo)簽選項(xiàng)卡 GUI", 300, 150); 創(chuàng)建居中顯示的 GUI 窗口

    GUISetBkColor(0x00E0FFFF)
    GUISetFont(9, 300)

    $tab = GUICtrlCreateTab(10, 10, 200, 100)

    GUICtrlCreateTabItem ("標(biāo)簽 0")
    GUICtrlCreateLabel("標(biāo)記0", 30, 80, 50, 20)
    GUICtrlCreateButton("確定0", 20, 50, 50, 20)
    GUICtrlCreateInput("默認(rèn)項(xiàng)", 80, 50, 70, 20)

    GUICtrlCreateTabItem ("標(biāo)簽 ----1")
    GUICtrlCreateLabel("標(biāo)記1", 30, 80, 50, 20)
    GUICtrlCreateCombo("", 20, 50, 60, 120)
    GUICtrlSetData(-1, "資源|數(shù)碼彈頭|拉里|喬恩|泰羅", "喬恩"); 默認(rèn)喬恩
    GUICtrlCreateButton("確定1", 80, 50, 50, 20)

    GUICtrlCreateTabItem ("標(biāo)簽 2")
    GUICtrlSetState(-1, $GUI_SHOW); "默認(rèn)項(xiàng)"
    GUICtrlCreateLabel("標(biāo)記2", 30, 80, 50, 20)
    GUICtrlCreateButton("確定2", 140, 50, 50)

    GUICtrlCreateTabItem (""); 結(jié)束選項(xiàng)卡項(xiàng)目定義

    GUICtrlCreateLabel("點(diǎn)擊選項(xiàng)卡, 看窗口標(biāo)題", 20, 130, 250, 20)

    GUISetState()

    ; 運(yùn)行 GUI, 直到 GUI 被關(guān)閉
    While 1
        $msg = GUIGetMsg()

        If $msg = $GUI_EVENT_CLOSE Then ExitLoop
        If $msg = $tab Then
            ; 顯示點(diǎn)擊的選項(xiàng)卡
            WinSetTitle("我的標(biāo)簽選項(xiàng)卡 GUI", "", "我的標(biāo)簽選項(xiàng)卡 GUI + " & GUICtrlRead($tab))
        EndIf
    WEnd
EndFunc   ;==>Example

provider with jb51.net (unicode)