Définit le handle du contrôle info-bulle associé au contrôle à onglet
#include <GuiTab.au3>
_GUICtrlTab_SetToolTips ( $hWnd, $hToolTip )
$hWnd | ID/handle du contrôle Tab |
$hToolTip | Handle du contrôle info-bulle |
#include <GUIConstantsEx.au3> #include <GuiTab.au3> #include <GuiToolTip.au3> #include <MsgBoxConstants.au3> Example() Func Example() Local $hTool, $idTab ; Crée une GUI GUICreate("Tab Control Set Tool Tips", 400, 300) $idTab = GUICtrlCreateTab(2, 2, 396, 296) GUISetState(@SW_SHOW) ; Ajoute des onglets _GUICtrlTab_InsertItem($idTab, 0, "Tab 1") _GUICtrlTab_InsertItem($idTab, 1, "Tab 2") _GUICtrlTab_InsertItem($idTab, 2, "Tab 3") ; Obtient/Définit tooltip $hTool = _GUIToolTip_Create(GUICtrlGetHandle($idTab)) _GUICtrlTab_SetToolTips($idTab, $hTool) MsgBox($MB_SYSTEMMODAL, "Information", "ToolTip handle: 0x" & _GUICtrlTab_GetToolTips($idTab)) ; Boucle jusqu'à ce que l'utilisateur quitte. Do Until GUIGetMsg() = $GUI_EVENT_CLOSE GUIDelete() EndFunc ;==>Example