Displays a balloon tip associated with an edit control
#include <GuiEdit.au3>
_GUICtrlEdit_ShowBalloonTip ( $hWnd, $sTitle, $sText, $iIcon )
$hWnd | Control ID/Handle to the control |
$sTitle | String for title of ToolTip (Unicode) |
$sText | String for text of ToolTip (Unicode) |
$iIcon | Icon can be one of the following: $TTI_ERROR - Use the error icon $TTI_INFO - Use the information icon $TTI_NONE - Use no icon $TTI_WARNING - Use the warning icon The following for Windows Vista or later $TTI_ERROR_LARGE - Use the error icon $TTI_INFO_LARGE - Use the information icon $TTI_WARNING_LARGE - Use the warning icon |
Success: | True. |
Failure: | False. |
#include <GUIConstantsEx.au3>
#include <GuiEdit.au3>
Example()
Func Example()
Local $idEdit, $sTitle = "ShowBalloonTip", $sText = "Displays a balloon tip associated with an edit control"
; Create GUI
GUICreate("Edit ShowBalloonTip", 400, 300)
$idEdit = GUICtrlCreateEdit("", 2, 2, 394, 268)
GUISetState(@SW_SHOW)
; Set Text
_GUICtrlEdit_SetText($idEdit, "This is a test" & @CRLF & "Another Line" & @CRLF & "Append to the end?")
_GUICtrlEdit_ShowBalloonTip($idEdit, $sTitle, $sText, $TTI_INFO)
; Loop until the user exits.
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
GUIDelete()
EndFunc ;==>Example