# Function Reference

GUICtrlSetTip

Sets the tip text associated with a control.

GUICtrlSetTip ( controlID, tiptext )

Parameters

controlID | The control identifier (controlID) as returned by a GUICtrlCreate... function.
tiptext | Tip text that will be displayed when the mouse is hovered over the control.

Return Value

Success: | Returns 1.
Failure: | Returns 0.

Remarks

This tip text is displayed in a tooltip rectangular area.

Related

GUICtrlSet...

Example

#include <GUIConstants.au3>
GUICreate("My GUI control tip") ; will create a dialog box that when displayed is centered
GUICtrlCreateLabel ("my label", 10,20)
GUICtrlSetTip(-1,"tip of my label")
GUISetState ()
; Run the GUI until the dialog is closed
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend