D�termine si un �l�ment d�clencheur est en cours d'affichage
#include <GuiToolTip.au3>
_GUIToolTip_ToolExists ( $hWnd )
$hWnd | Handle du contr�le info-bulle (retourn� par _GUIToolTip_Create.) |
True: | L'�l�ment existe. |
False: | L'�l�ment n'existe pas. |
Cette fonction ne retournera true que si le contr�le info-bulle est en train d'afficher l'un des �l�ments qui lui sont associ�s.
#include <GUIConstantsEx.au3> #include <GUIToolTip.au3> #include <MsgBoxConstants.au3> Global $g_hToolTip ; Appuyez sur la touche "g" pour afficher les informations HotKeySet("g", "Get_Tool") Example() Func Example() Local $hGUI = GUICreate(StringTrimRight(@ScriptName, 4), 350, 200) Local $idButton = GUICtrlCreateButton("Button ToolTip", 30, 32, 130, 28) Local $hButton = GUICtrlGetHandle($idButton) ; Cr�e un contr�le info-bulle en utilisant les param�tres par d�faut $g_hToolTip = _GUIToolTip_Create(0) ; Ajoute un �l�ment au contr�le info-bulle _GUIToolTip_AddTool($g_hToolTip, 0, "This is a ToolTip", $hButton) GUISetState(@SW_SHOW) Do Until GUIGetMsg() = $GUI_EVENT_CLOSE ; D�truit le contr�le info-bulle _GUIToolTip_Destroy($g_hToolTip) GUIDelete($hGUI) EndFunc ;==>Example Func Get_Tool() ; Cela permet d'afficher "True" si l'�l�ment est en cours d'affichage MsgBox($MB_SYSTEMMODAL, "", "Tooltip Exists = " & _GUIToolTip_ToolExists($g_hToolTip)) EndFunc ;==>Get_Tool