Aide:GUICtrlCreateCombo.txt
De Wiki AutoIt Français
Document original V3.3.6.1 :
###Function###
GUICtrlCreateCombo
###Description###
Creates a ComboBox control for the GUI.
###Syntax###
GUICtrlCreateCombo ( "text", left, top [, width [, height [, style [, exStyle]]]] )
###Parameters###
@@ParamTable@@
text
The text which will appear in the combo 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 is the previously used width).
height
[optional] The height of the control (default is the previously used height).
style
[optional] Defines the style of the control. See <a href="../appendix/GUIStyles.htm#Combo">GUI Control Styles Appendix</a>.
default (-1) : $CBS_DROPDOWN, $CBS_AUTOHSCROLL, $WS_VSCROLL
forced style : $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 obtain the value of the control see <a href="GUICtrlRead.htm">GUICtrlRead</a>.
To set or change information in the control see <a href="GUICtrlUpdate Management.htm">GUICtrlUpdate...</a>.
Under Windows XP/2003 Windows will adjust the size of the opened combo. On other Windows versions you can define this size with the "height" parameter if the default value is not BIG enough to contain at least one line.
To combine styles with the default style use <b>BitOr</b>($GUI_SS_DEFAULT_COMBO, newstyle,...).
To use the values specified above you must #include <ComboConstants.au3> in your script.
Default resizing is $GUI_DOCKHEIGHT.
###Related###
GUICoordMode (Option), GUICtrlSetData, GUICtrlUpdate..., GUIGetMsg
###Example###
@@IncludeExample@@
Document traduit V3.3.6.1 :
###Function###
GUICtrlCreateCombo
###Description###
Crée un Contrôle ComboBox sur une GUI.
###Syntax###
GUICtrlCreateCombo ( "text", left, top [, width [, height [, style [, exStyle]]]] )
###Parameters###
@@ParamTable@@
text
Le texte qui apparaîtra dans le contrôle ComboBox.
left
La distance à gauche du contrôle. Si -1 est utilisé alors la valeur sera déterminée en accord avec <a
href="AutoItSetOption.htm#GUICoordMode">GUICoordMode.
top
La distance en haut du contrôle. Si -1 est utilisé alors la valeur sera déterminée en accord avec <a
href="AutoItSetOption.htm#GUICoordMode">GUICoordMode.
width
[optionnel] La largeur du contrôle (La valeur par défaut est la largeur précédemment utilisée).
height
[optionnel] La hauteur du contrôle (La valeur par défaut est la hauteur précédemment utilisée).
style
[optionnel] Définit le style du contrôle. Voir <a href="../appendix/GUIStyles.htm#Combo">GUI Control Styles Appendix</a>.
défaut (-1) : $CBS_DROPDOWN, $CBS_AUTOHSCROLL, $WS_VSCROLL
Style forcé : $WS_TABSTOP
exStyle
[optional] Définit le style étendu du contrôle. Voir <a href="../appendix/GUIStyles.htm#Extended">Table de Style Étendue</a>.
@@End@@
###ReturnValue###
@@ReturnTable@@
Succès: Retourne l'identifiant (controlID) du nouveau contrôle.
Échec: Retourne 0.
@@End@@
###Remarks###
Pour obtenir la valeur du contrôle, voir <a href="GUICtrlRead.htm">GUICtrlRead</a>.
Pour attribuer ou changer les informations du contrôle, voir <a href="GUICtrlUpdate Management.htm">GUICtrlUpdate...</a>.
Sous Windows XP/2003 Windows ajustera la taille du combo ouvert. Sous les autres versions de Windows, vous pouvez déterminer cette taille avec
le paramètre "height" si la valeur par défaut n'est pas ASSEZ GRANDE pour contenir au moins une ligne.
Pour combiner les styles avec le style par défaut, utilisez <b>BitOr</b>($GUI_SS_DEFAULT_COMBO, nouveaustyle,...).
Pour utiliser les valeurs spécifiées ci-dessus, vous devez ajouter #include <ComboConstants.au3> dans votre script.
Le redimensionnement par défaut est $GUI_DOCKHEIGHT.
###Related###
<a href="GUICoordMode.htm">GUICoordMode (Option)</a>, <a href="GUICtrlSetData.htm">GUICtrlSetData</a>, <a
href="GUICtrlUpdate.htm">GUICtrlUpdate...</a>, <a href="GUIGetMsg.htm">GUIGetMsg</a>
###Example###
@@IncludeExample@@
Traducteur : ZOTHOP
Contributeurs (pour les modifications avant le Wiki) :