Aide:ControlGetPos.txt

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

Document original V3.3.6.1 :

###Function###
ControlGetPos

###Description###
Retrieves the position and size of a control relative to it's window.

###Syntax###
ControlGetPos ( "title", "text", controlID )


###Parameters###
@@ParamTable@@
title
	The title of the window to access.
text
	The text of the window to access.
controlID
	The control to interact with.  See <a href="../intro/controls.htm">Controls</a>.
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	Returns an array containing the size and the control's position relative to it's client window:
	$array[0] = X position
	$array[1] = Y position
	$array[2] = Width
	$array[3] = Height
Failure:	Sets @error to 1.
@@End@@


###Remarks###
The title/text is referencing the parent window, so be careful with "","" which references the active window which may not be the one containing the controlID control.

###Related###
ControlCommand, ControlMove


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


Document traduit V3.3.6.1 :

###Function###
ControlGetPos


###Description###
Retourne la position et la taille d'un contrôle.


###Syntax###
ControlGetPos ( "title", "text", controlID )


###Parameters###
@@ParamTable@@
title
	Le titre de la fenêtre à atteindre.
text
	Le texte de la fenêtre à atteindre.
controlID
	Le contrôle avec lequel interagir. Voir <a href="../intro/controls.htm">Controls</a>.
@@End@@


###ReturnValue###
@@ReturnTable@@
Succès:	Retourne un tableau contenant la taille et la position du contrôle relatif à la partie cliente de la fenêtre :
	$array[0] = Abscisse
	$array[1] = Ordonnée
	$array[2] = Largeur
	$array[3] = Hauteur
Échec:	Met @error à 1.
@@End@@


###Remarks###
Le titre et le texte font référence à la fenêtre parente, donc faites attention avec "","" qui référence la fenêtre active qui n'est peut être pas celle qui contient le controlID du contrôle.


###Related###
<a href="ControlCommand.htm">ControlCommand</a>, <a href="ControlMove.htm">ControlMove</a>


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


Traducteur : ZDS

Contributeurs (pour les modifications avant le Wiki) : Tlem