Jump to content

How to write a text in bold in a ToolTip?


1224
 Share

Recommended Posts

Link to comment
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

Link to comment
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
Link to comment
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)

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

Link to comment
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

Link to comment
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

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...