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

基 礎 函 數(shù) 參 考


GUICtrlSetLimit

設置控件的字符或象素數(shù)量限制.

GUICtrlSetLimit ( 控件ID, 最大值 [, 最小值] )

參 數(shù)

控件ID GUICtrlCreate... 函數(shù)返回的控件標識符.
最大值 對于 List 列表控件,此值表示水平滾動的最大長度象素值.
對于 Input(輸入框)/Edit(編輯框) 控件,此值表示最多能輸入的字符數(shù).
最小值 [可選參數(shù)] 對于 Slider(滑塊) 和 UpDown(上下箭頭) 控件, 可以指定最小值. 默認 = 0

返 回 值

成功: 返回 1.
失敗: 返回 0.

備 注

None.

相 關 函 數(shù)

GUICtrlCreateList, GUICtrlCreateInput, GUICtrlCreateEdit, GUICtrlCreateSlider, GUICtrlCreateUpdown

函 數(shù) 示 例


#include <GUIConstantsEx.au3>

Example()

Func Example()
    Local $msg

    GUICreate("限制輸入 3 個字符") ; 創(chuàng)建居中顯示的 GUI 窗口

    GUICtrlCreateInput("", 10, 20)
    GUICtrlSetLimit(-1, 3) ; 限制輸入 3 個字符

    GUISetState()

    ; 運行 GUI, 直到 GUI 被關閉
    While 1
        $msg = GUIGetMsg()

        If $msg = $GUI_EVENT_CLOSE Then ExitLoop
    WEnd
EndFunc   ;==>Example

provider with jb51.net (unicode)