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 "Extras\HelpFileInternals.au3"

#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 & ")", 450, 300, 100, 100)
    Local $hTab = _GUICtrlTab_Create($hGUI, 2, 2, 446, 266)
    _MemoMsgBoxStatus() ; Status creation

    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)

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

    _MemoMsgBoxStatus("", -1, $hGUI) ; no more action, wait GUI for closing

EndFunc   ;==>Example