Jump to content

tooltip question


Recommended Posts

does anyone know how to change the text color of tooltip? is it through _GUIToolTip_SetTipTextColor? because I cant seem to get it to work, any help would be greatly appreciated. Thanks

testing testing...

#Include <GuiToolTip.au3>

$sTitleTIP= "my red text"
ToolTip($sTitleTIP)
$hToolTip = WinGetHandle($sTitleTIP)
_GUIToolTip_SetTipTextColor($hToolTip, 0x0000ff) ; red text
_GUIToolTip_SetTipBkColor($hToolTip, 0xffffff) ; white background
Sleep(5000)
Exit
Link to comment
Share on other sites

hmmm.... that is weird, I get white background with black text no matter what value i change the colors to.... is it because Im on vista?

edit... i just tried it on my vitrual machine running xp and it works. wow... hmm i guess vista wont let me do it??

Edited by tomagucci
Link to comment
Share on other sites

hmmm.... that is weird, I get white background with black text no matter what value i change the colors to.... is it because Im on vista?

edit... i just tried it on my vitrual machine running xp and it works. wow... hmm i guess vista wont let me do it??

Oh yes...Themes issues. Currently, I'm not using using some theme under Vista.

If you try deactivating your theme, you could see the Tooltip correctly.

Link to comment
Share on other sites

Try to disable theme with

_GUIToolTip_SetWindowTheme($hToolTip, "")

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...