Sign in to follow this  
Followers 0
1224

How to write a text in bold in a ToolTip?

8 posts in this topic

How to write a text in bold in a ToolTip?

For example

CODE
ToolTip("testing1", 0, 0)

I want the word "testing1" in bold style

How can I do this?

Share this post


Link to post
Share on other sites



Share this post


Link to post
Share on other sites

See GuiToolTip.au3 from AutoIt package.

actaully, I have seen the "help" about it before

But I don't quite understand as it doesn't have any example

could you please give me a simplest example just like #1 that I mentioned

Share this post


Link to post
Share on other sites

actaully, I have seen the "help" about it before

But I don't quite understand as it doesn't have any example

could you please give me a simplest example just like #1 that I mentioned

http://www.autoitscript.com/forum/index.php?s=&showtopic=72983&view=findpost&p=532263

Share this post


Link to post
Share on other sites

I want font style

Download and extract the zip file in the linked post.....the udf contains a function:

_ToolTip_SetFont

you can set font style, weight (400 = normal....increase this number for bold I guess), attribute (italic, underlined, strikethrough), and font size....

Full description below:

; #FUNCTION# =============================================================

; Name............: _ToolTip_SetFont

; Description.....: Sets the font size, weight, attributes and font name for a tooltip text

; Syntax..........: _ToolTip_SetFont($hControl, $sFontSize, $sFontWeight = 400, $sFontAtrribute = 0, $sFont = "")

; Parameter(s)....: $hControl - The control identifier or handle

; $sFontSize - Fontsize (default is 10)

; $sFontWeight - [optional] Font weight (default 400 = normal)

; $sFontAtrribute - [optional] To define italic:2 underlined:4 strike:8 char formats

; $sFont - [optional] The name of the font to use

; Return value(s).: Success - None

; Failure - Sets @error to 1 and returns 0 if $sFontSize param contains a empty or not numeric string

; Requirement(s)..: AutoIt 3.2.12.0

; Note(s).........: Tested on Windows XP SP2

; Author(s).......: R.Gilman (a.k.a. rasim)

; ========================================================================

Share this post


Link to post
Share on other sites

Download and extract the zip file in the linked post.....the udf contains a function:

_ToolTip_SetFont

you can set font style, weight (400 = normal....increase this number for bold I guess), attribute (italic, underlined, strikethrough), and font size....

Full description below:

; #FUNCTION# =============================================================

; Name............: _ToolTip_SetFont

; Description.....: Sets the font size, weight, attributes and font name for a tooltip text

; Syntax..........: _ToolTip_SetFont($hControl, $sFontSize, $sFontWeight = 400, $sFontAtrribute = 0, $sFont = "")

; Parameter(s)....: $hControl - The control identifier or handle

; $sFontSize - Fontsize (default is 10)

; $sFontWeight - [optional] Font weight (default 400 = normal)

; $sFontAtrribute - [optional] To define italic:2 underlined:4 strike:8 char formats

; $sFont - [optional] The name of the font to use

; Return value(s).: Success - None

; Failure - Sets @error to 1 and returns 0 if $sFontSize param contains a empty or not numeric string

; Requirement(s)..: AutoIt 3.2.12.0

; Note(s).........: Tested on Windows XP SP2

; Author(s).......: R.Gilman (a.k.a. rasim)

; ========================================================================

ic..

thanks

Share this post


Link to post
Share on other sites

Download and extract the zip file in the linked post.....the udf contains a function:

_ToolTip_SetFont

you can set font style, weight (400 = normal....increase this number for bold I guess), attribute (italic, underlined, strikethrough), and font size....

Full description below:

; #FUNCTION# =============================================================

; Name............: _ToolTip_SetFont

; Description.....: Sets the font size, weight, attributes and font name for a tooltip text

; Syntax..........: _ToolTip_SetFont($hControl, $sFontSize, $sFontWeight = 400, $sFontAtrribute = 0, $sFont = "")

; Parameter(s)....: $hControl - The control identifier or handle

; $sFontSize - Fontsize (default is 10)

; $sFontWeight - [optional] Font weight (default 400 = normal)

; $sFontAtrribute - [optional] To define italic:2 underlined:4 strike:8 char formats

; $sFont - [optional] The name of the font to use

; Return value(s).: Success - None

; Failure - Sets @error to 1 and returns 0 if $sFontSize param contains a empty or not numeric string

; Requirement(s)..: AutoIt 3.2.12.0

; Note(s).........: Tested on Windows XP SP2

; Author(s).......: R.Gilman (a.k.a. rasim)

; ========================================================================

ic..

thanks

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