Sign in to follow this  
Followers 0
ihenvyr

Changing Tooltip Font Size

8 posts in this topic

Hello Everyone!! :)

Is it possible to change Tooltip's font size?

i'm just curious..


Umbrella Member

Share this post


Link to post
Share on other sites



Hello Everyone!! :)

Is it possible to change Tooltip's font size?

i'm just curious..

good rule of thumb. If it's documented in the help file, you can do it.

Reading the help file before you post... Not only will it make you look smarter, it will make you smarter.

Share this post


Link to post
Share on other sites

i think its for SplashTextOn.. which you can change font size..

but for tooltips can't find it..

can you show me an example??

please :)


Umbrella Member

Share this post


Link to post
Share on other sites

i think its for SplashTextOn.. which you can change font size..

but for tooltips can't find it..

can you show me an example??

please :)

corollary to good rule of thumb. If you can't find it in the help file, you likely can't do it.

Post the feature enhancement request to the idea lab.


Reading the help file before you post... Not only will it make you look smarter, it will make you smarter.

Share this post


Link to post
Share on other sites

Haven't figured out how to change the font, but did the colors

#include <GuiConstants.au3>
#include <GuiListView.au3>

Global Const $WM_USER = 0x400
Global Const $TTM_SETTIPBKCOLOR = ($WM_USER + 19)
Global Const $TTM_SETTIPTEXTCOLOR = ($WM_USER + 20)

GUICreate("Test Tool Tip", 480, 390, 348, 128, BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))
$Boton = GUICtrlCreateButton("Ok", 120, 216, 81, 33)
ToolTip("This is a tooltip")
$h_tooltip = WinGetHandle ("This is a tooltip")
DllCall("user32.dll","int","SendMessage","hwnd",$h_tooltip,"int",$TTM_SETTIPBKCOLOR,"int",0xcd0000,"int",0)
DllCall("user32.dll","int","SendMessage","hwnd",$h_tooltip,"int",$TTM_SETTIPTEXTCOLOR,"int",0xFFFFFF,"int",0)
GUISetState(@SW_SHOW)

While 1
    $msg = GUIGetMsg()
    
    Select
        
        Case $msg = $GUI_EVENT_CLOSE
            
            ExitLoop
    EndSelect
    
WEnd

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

Haven't figured out how to change the font, but did the colors

#include <GuiConstants.au3>
#include <GuiListView.au3>

Global Const $WM_USER = 0x400
Global Const $TTM_SETTIPBKCOLOR = ($WM_USER + 19)
Global Const $TTM_SETTIPTEXTCOLOR = ($WM_USER + 20)

GUICreate("Test Tool Tip", 480, 390, 348, 128, BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))
$Boton = GUICtrlCreateButton("Ok", 120, 216, 81, 33)
ToolTip("This is a tooltip")
$h_tooltip = WinGetHandle ("This is a tooltip")
DllCall("user32.dll","int","SendMessage","hwnd",$h_tooltip,"int",$TTM_SETTIPBKCOLOR,"int",0xcd0000,"int",0)
DllCall("user32.dll","int","SendMessage","hwnd",$h_tooltip,"int",$TTM_SETTIPTEXTCOLOR,"int",0xFFFFFF,"int",0)
GUISetState(@SW_SHOW)

While 1
    $msg = GUIGetMsg()
    
    Select
        
        Case $msg = $GUI_EVENT_CLOSE
            
            ExitLoop
    EndSelect
    
WEnd

Nice!

Share this post


Link to post
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
Sign in to follow this  
Followers 0