函数参考


_GUICtrlEdit_HideBalloonTip

隐藏与编辑框控件有关的所有气泡提示

#include <GuiEdit.au3>
_GUICtrlEdit_HideBalloonTip($hWnd)

参数

$hWnd 控件的控件ID/句柄

返回值

成功: 返回 True
失败: 返回 False

注意/说明

最低操作系统 - Windows XP.

相关

_GUICtrlEdit_ShowBalloonTip

示例/演示


#include <GuiEdit.au3>
#include <GUIConstantsEx.au3>

$Debug_Ed = False ; Check ClassName being passed to Edit functions, set to True and use a handle to another control to see it work

_Main()

Func _Main()
    Local $hGui, $hEdit, $sTitle = "ShowBalloonTip", $sText = "Displays a balloon tip associated with an edit control"

    ; 创建 GUI
    $hGui = GUICreate("Edit ShowBalloonTip", 400, 300)
    $hEdit = _GUICtrlEdit_Create($hGui, "", 2, 2, 394, 268)
    GUISetState()

    ; Set Text
    _GUICtrlEdit_SetText($hEdit, "This is a test" & @CRLF & "Another Line" & @CRLF & "Append to the end?" & @CRLF & @CRLF)

    _GUICtrlEdit_ShowBalloonTip($hEdit, $sTitle, $sText, $TTI_INFO)
    Sleep(1000)
    Local $bool = _GUICtrlEdit_HideBalloonTip($hEdit)
    _GUICtrlEdit_AppendText($hEdit, "HideBalloonTip = " & $bool & @CRLF)

    ; 循环直到用户退出
    Do
    Until GUIGetMsg() = $GUI_EVENT_CLOSE
    GUIDelete()
EndFunc   ;==>_Main