Eiyu Posted October 30, 2014 Share Posted October 30, 2014 Hello I would like to remove the borders of my tooltip I cannot , after several internet searches, I have not found I like to have white text on a black background in the frame Here's what I have so far : expandcollapse popup#include <GuiToolTip.au3> #include <WindowsConstants.au3> Func _GUIToolTip_CreateToolTip($hWnd, $sTitle, $sText, $iStyle = Default, $iX = -1, $iY = -1, $iFlags = 0, $iColTxt = Default, $iColBk = Default, $iIcon = 0) Local Const $CW_USEDEFAULT = 0x80000000 If Not IsHWnd($hWnd) Or IsKeyword($hWnd) Then $hWnd = 0 If IsKeyword($iX) Or $iX < 0 Or Not IsNumber($iX) Then $iX = 0 If IsKeyword($iY) Or $iY < 0 Or Not IsNumber($iY) Then $iY = 0 If IsKeyword($iFlags) Or $iFlags <= 0 Or Not IsNumber($iFlags) Then $iFlags = 40 If IsKeyword($iStyle) Then $iStyle = BitOR($TTS_BALLOON, $TTS_CLOSE) Local $hTip = _WinAPI_CreateWindowEx($WS_EX_TOPMOST, "tooltips_class32", "", BitOR($iStyle, $TTS_ALWAYSTIP, $TTS_NOPREFIX), $CW_USEDEFAULT, $CW_USEDEFAULT, $CW_USEDEFAULT, $CW_USEDEFAULT, $hWnd) _GUIToolTip_AddTool($hTip, $hWnd, $sText, $hWnd, 0, 0, 0, 0, $iFlags, 0) If Number($iIcon) > 3 And @OSVersion = "WIN_XP" And Number(StringRight(@OSServicePack, 1)) < 2 Then $iIcon = 0 If Not IsNumber($iIcon) Or $iIcon < 0 Then $iIcon = 0 _GUIToolTip_SetTitle($hTip, $sTitle, $iIcon) If IsInt($iColTxt) Then _GUIToolTip_SetTipTextColor($hTip, $iColTxt) If IsInt($iColBk) Then _GUIToolTip_SetTipBkColor($hTip, $iColBk) If $hWnd = 0 Or $hWnd = -1 Or IsKeyword($hWnd) Then _GUIToolTip_TrackActivate($hTip, True, $hWnd, $hWnd) EndIf Return $hTip EndFunc ;==>_GUIToolTip_CreateToolTip Func _SetTipColors($hWnd, $iBkColor, $iTxtColor) DllCall("UxTheme.dll", "int", "SetWindowTheme", "hwnd", $hWnd, "wstr", "", "wstr", "") DllCall("user32.dll", "int", "SendMessage", "hwnd", $hWnd, "int", $TTM_SETTIPBKCOLOR, "int", _RGB2BGR($iBkColor), "int", 0) DllCall("user32.dll", "int", "SendMessage", "hwnd", $hWnd, "int", $TTM_SETTIPTEXTCOLOR, "int", _RGB2BGR($iTxtColor), "int", 0) EndFunc ;==>_SetTipColors Func _RGB2BGR($iColor) Return BitAND(BitShift(String(Binary($iColor)), 8), 0xFFFFFF) EndFunc ;==>_RGB2BGR Global $hToolTip = _GUIToolTip_CreateToolTip(0, "", "Test", 0, 0, 0, 0, 0, 0xFFFFFF) _SetTipColors($hToolTip, 0x000000, 0xFFFFFF) While 1 Wend Thank you in advance Link to comment Share on other sites More sharing options...
Bert Posted October 30, 2014 Share Posted October 30, 2014 You would have to do a GUI that has no frame that popped up when you hovered over the tray icon. Search the forum for how to do this. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Eiyu Posted October 30, 2014 Author Share Posted October 30, 2014 My tootlip is a status report on a variable that I want it to be always displayed Link to comment Share on other sites More sharing options...
Bert Posted October 30, 2014 Share Posted October 30, 2014 ok - make a window that has no border. Search the forum and you will see many examples on how to do it. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Eiyu Posted October 30, 2014 Author Share Posted October 30, 2014 I found the kind of window you speak But I do not want there to be a program in my task bar Thank you for answers in previous Link to comment Share on other sites More sharing options...
Bert Posted October 31, 2014 Share Posted October 31, 2014 look at the command GuiCreate and look at in the extended style table for $WS_EX_TOOLWINDOW. You can find this in the help file. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Eiyu Posted October 31, 2014 Author Share Posted October 31, 2014 Ok, Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now