Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <GuiToolTip.au3>
- #include <WinAPI.au3>
- #include <GUIConstantsEx.au3>
- #include <FontConstants.au3>
- #include <SendMessage.au3>
- #include <WindowsConstants.au3>
- BigToolTip("Não foram encontrados arquivos",600)
- Func BigToolTip($btt_MSG,$btt_Temp=1000,$btt_Left=@DesktopWidth / 2,$btt_Top=@DesktopHeight / 2,$btt_Size=22)
- Local $hToolTip = _GUIToolTip_Create(0), $hDC = _WinAPI_GetDC(0)
- Local $hFont = _WinAPI_CreateFont($btt_Size, 0, 0, 0, 800, False, False, False, $DEFAULT_CHARSET, $OUT_DEFAULT_PRECIS, $CLIP_DEFAULT_PRECIS, $DEFAULT_QUALITY, 0, 'Tahoma')
- Local $hOldFont = _WinAPI_SelectObject($hDC, $hFont)
- _SendMessage($hToolTip, $WM_SETFONT, $hFont, True)
- _GUIToolTip_AddTool($hToolTip, 0, $btt_MSG, 0, 0, 0, 0, 0, BitOR($TTF_TRACK, $TTF_ABSOLUTE)) ; <<<<<<<<<<<<<<<
- _GUIToolTip_TrackPosition($hToolTip, $btt_Left, $btt_Top)
- _GUIToolTip_TrackActivate($hToolTip, True, 0, 0)
- Sleep($btt_Temp)
- _GUIToolTip_Destroy($hToolTip)
- EndFunc
Advertisement
Add Comment
Please, Sign In to add comment