Aide:GUICtrlSetFont.txt

De Wiki AutoIt Français
Aller à : navigation, rechercher

Document original V3.3.6.1 :

###Function###
GUICtrlSetFont

###Description###
Sets the font for a control.

###Syntax###
GUICtrlSetFont (controlID, size [, weight [, attribute [, fontname[, quality]]]] )

###Parameters###
@@ParamTable@@
controlID
	The control identifier (controlID) as returned by a <a href="GUICtrlCreate Management.htm">GUICtrlCreate...</a> function.
size
	Fontsize (default is 8.5).
weight
	[optional] Font weight (default 400 = normal).
attribute
	[optional] To define italic:2 underlined:4 strike:8 char format (add together the values of all the styles required, 2+4 = italic and underlined).
fontname
	[optional] The name of the font to use.
quality
	[optional] Font quality to select (default is PROOF_QUALITY=2).
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	Returns 1.
Failure:	Returns 0.
@@End@@


###Remarks###
By default, controls use the font set by GUISetFont.

Size can contain a decimal as in 8.5.

For some controls such as labels, the default size can be 8.5 instead of 9 according to Windows Theme Values.

See the Appendix for a complete list of Windows fonts and the Windows versions under which they are supported.

For Quality parameter check MSDN, some windows XP installation need CLEARTYPE_QUALITY=5

###Related###
GUICtrlCreate..., GUISetFont


###Example###
@@IncludeExample@@


Document traduit V3.3.6.1 :

Texte en Français


Traducteur :

Contributeurs (pour les modifications avant le Wiki) :