Aide:GUICtrlCreateButton.txt
De Wiki AutoIt Français
Document original V3.3.6.1 :
###Function###
GUICtrlCreateButton
###Description###
Creates a Button control for the GUI.
###Syntax###
GUICtrlCreateButton ( "text", left, top [, width [, height [, style [, exStyle]]]] )
###Parameters###
@@ParamTable@@
text
The text of the button control.
left
The left side of the control. If -1 is used then left will be computed according to <a href="AutoItSetOption.htm#GUICoordMode">GUICoordMode.
top
The top of the control. If -1 is used then top will be computed according to <a href="AutoItSetOption.htm#GUICoordMode">GUICoordMode.
width
[optional] The width of the control (default text autofit in width).
height
[optional] The height of the control (default text autofit in height).
style
[optional] Defines the style of the control. See <a href="../appendix/GUIStyles.htm#Button">GUI Control Styles Appendix</a>.
default ( -1) : none.
forced styles : $WS_TABSTOP
exStyle
[optional] Defines the extended style of the control. See <a href="../appendix/GUIStyles.htm#Extended">Extended Style Table</a>.
@@End@@
###ReturnValue###
@@ReturnTable@@
Success: Returns the identifier (controlID) of the new control.
Failure: Returns 0.
@@End@@
###Remarks###
To set or change information in the control see <a href="GUICtrlUpdate Management.htm">GUICtrlUpdate...</a>.
A Button control can display an icon or image by using the $BS_ICON or $BS_BITMAP style. Use <a href="GUICtrlSetImage.htm">GUICtrlSetImage</a> to specify the picture to use.
To combine styles with the default style use <b>BitOr</b>($GUI_SS_DEFAULT_BUTTON, newstyle,...).
To use the values specified above you must #include <ButtonConstants.au3> in your script.
Default resizing is $GUI_DOCKSIZE
###Related###
GUICoordMode (Option), GUICtrlUpdate..., GUIGetMsg
###Example###
@@IncludeExample@@
Document traduit V3.3.6.1 :
###Function###
GUICtrlCreateButton
###Description###
Créé un bouton pour la GUI.
###Syntax###
GUICtrlCreateButton ( "text", left, top [, width [, height [, style [, exStyle]]]] )
###Parameters###
@@ParamTable@@
text
Le texte du bouton.
left
La distance à gauche du bouton. Si -1 est utilisé alors il sera automatiquement déterminé par <a href="AutoItSetOption.htm#GUICoordMode">GUICoordMode.
top
La distance en haut du bouton. Si -1 est utilisé alors il sera automatiquement déterminé par <a href="AutoItSetOption.htm#GUICoordMode">GUICoordMode.
width
[optionnel] La largeur du bouton (Le texte par défaut se met à l'échelle).
height
[optionnel] La hauteur du bouton (Le texte par défaut se met à l'échelle).
style
[optionnel] Définit le style du bouton. Voir <a href="../appendix/GUIStyles.htm#Button">Styles de GUI</a>.
defaut ( -1) : Non.
Styles forcés : $WS_TABSTOP
exStyle
[optionnel] Définit le style avancé. Voir <a href="../appendix/GUIStyles.htm#Extended">Styles avancés</a>.
@@End@@
###ReturnValue###
@@ReturnTable@@
Succès: Retourne l'identifiant (controlID) du nouveau contrôle.
Échec: Retourne 0.
@@End@@
###Remarks###
Pour voir ou changer les informations du bouton, voir <a href="GUICtrlUpdate Management.htm">GUICtrlUpdate...</a>.
Un bouton peut afficher une icône ou un bouton en utilisant les styles $BS_ICON ou $BS_BITMAP. Utiliser <a href="GUICtrlSetImage.htm">GUICtrlSetImage</a> pour spécifier l'image à utiliser.
Pour combiner des styles avec ceux par défaut, utiliser <b>BitOr</b>($GUI_SS_DEFAULT_BUTTON, nouveaustyle,...).
Pour utiliser les valeurs présentées, vous devez inclure #include <ButtonConstants.au3> dans votre script.
Le redimensionnage par défaut est $GUI_DOCKSIZE.
###Related###
GUICoordMode (Option), GUICtrlUpdate..., GUIGetMsg
###Example###
@@IncludeExample@@
Traducteur : RL77LUC
Contributeurs (pour les modifications avant le Wiki) :