Aide:GUICtrlCreateGraphic.txt
De Wiki AutoIt Français
Document original V3.3.6.1 :
###Function###
GUICtrlCreateGraphic
###Description###
Creates a Graphic control for the GUI.
###Syntax###
GUICtrlCreateGraphic ( left, top [, width [, height [, style]]] )
###Parameters###
@@ParamTable@@
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#Label">GUI Control Styles Appendix</a>.
default ( -1) : $SS_NOTIFY.
@@End@@
###ReturnValue###
@@ReturnTable@@
Success: Returns the identifier (controlID) of the new control.
Failure: Returns 0.
@@End@@
###Remarks###
To draw in the control see <a href="GUICtrlSetGraphic.htm">GUICtrlSetGraphic</a>.
The border and background color can be set with GUICtrlSetBkColor and GUICtrlSetColor.
Graphic control can be clicked so they should not overlap with other controls. If overlap is needed it is important to disable the graphic control : GuiCtrlSetState(-1,$GUI_DISABLE).
This control cannot be resized due to fix graphic relative addressing creation but can be dock with GUICtrlSetResizing().
###Related###
GUICtrlSetGraphic, GUICtrlSetBkColor, GUICtrlSetColor, GUICtrlDelete, GUICoordMode (Option), GUICtrlSetStyle, GUICtrlSetResizing, GUIGetMsg
###Example###
@@IncludeExample@@
Document traduit V3.3.6.1 :
###Function###
GUICtrlCreateGraphic
###Description###
Crée un contrôle graphique pour l'interface graphique.
###Syntax###
GUICtrlCreateGraphic ( left, top [, width [, height [, style]]] )
###Parameters###
@@ParamTable@@
left
La position en partant de la gauche de la fenêtre. Si vous utilisez -1, la position sera calculé en fonction de <a href="AutoItSetOption.htm#GUICoordMode">GUICoordMode</a>.
top
La position en partant du sommet de la fenêtre. Si vous utilisez -1, la position sera calculé en fonction de <a href="AutoItSetOption.htm#GUICoordMode">GUICoordMode</a>.
width
[optionnel] La largeur du contrôle (par défaut est la largeur utilisée précédemment).
height
[optionnel] La hauteur du contrôle (par défaut est la hauteur utilisée précédemment).
style
[optionnel] Définit le style du contrôle. Voir l'<a href="../appendix/GUIStyles.htm#Label">annexe de styles de contrôle GUI</a>.
défaut ( -1) : $SS_NOTIFY.
@@End@@
###ReturnValue###
@@ReturnTable@@
Succès: Retourne l'identifiant (ID du contrôle) du nouveau contrôle.
Échec: Retourne 0.
@@End@@
###Remarks###
Pour dessiner dans le contrôle, voir <a href="GUICtrlSetGraphic.htm">GUICtrlSetGraphic</a>.
La couleur du contour et la couleur de fond peut être réglé avec GUICtrlSetBkColor et GUICtrlSetColor.
Le contrôle graphique peut être cliqué donc il ne devraient pas chevaucher d'autres contrôles. Si le chevauchement est nécessaire, il est important de désactiver le contrôle graphique: GuiCtrlSetState (-1, $GUI_DISABLE).
Ce contrôle ne peut pas être redimensionné en raison d'une correction relative à l'adressage lors de sa création, mais il peut être attaché avec GUICtrlSetResizing().
###Related###
GUICtrlSetGraphic, GUICtrlSetBkColor, GUICtrlSetColor, GUICtrlDelete, GUICoordMode (Option), GUICtrlSetStyle, GUICtrlSetResizing, GUIGetMsg
###Example###
@@IncludeExample@@
Traducteur : TT22
Contributeurs (pour les modifications avant le Wiki) :