Function Reference


_GUICtrlTab_SetToolTips

Sets the handle to the ToolTip control associated with the control

#include <GuiTab.au3>
_GUICtrlTab_SetToolTips ( $hWnd, $hToolTip )

Parameters

$hWnd Control ID/Handle to the control
$hToolTip Handle to the ToolTip control

Return Value

None.

Related

_GUICtrlTab_GetToolTips

Example

#include <GUIConstantsEx.au3>
#include <GuiTab.au3>
#include <GuiToolTip.au3>
#include <MsgBoxConstants.au3>

Example()

Func Example()
        ; Create GUI
        Local $hGUI = GUICreate("Tab Get/Set Tool Tips (v" & @AutoItVersion & ")", 400, 300)
        Local $hTab = _GUICtrlTab_Create($hGUI, 2, 2, 396, 296)
        GUISetState(@SW_SHOW)

        ; Add tabs
        _GUICtrlTab_InsertItem($hTab, 0, "Tab 0")
        _GUICtrlTab_InsertItem($hTab, 1, "Tab 1")
        _GUICtrlTab_InsertItem($hTab, 2, "Tab 2")

        ; Get/Set tooltip
        Local $hTool = _GUIToolTip_Create($hTab)
        _GUICtrlTab_SetToolTips($hTab, $hTool)

        MsgBox($MB_SYSTEMMODAL, "Information", "ToolTip handle: 0x" & _GUICtrlTab_GetToolTips($hTab) & @CRLF & _
                        "IsPtr = " & IsPtr(_GUICtrlTab_GetToolTips($hTab)) & " IsHWnd = " & IsHWnd(_GUICtrlTab_GetToolTips($hTab)))

        ; Loop until the user exits.
        Do
        Until GUIGetMsg() = $GUI_EVENT_CLOSE
        GUIDelete()
EndFunc   ;==>Example