Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.00

Description

Description:Sets the wanted position and size for control animation. If the style of the control is Lines, then use the alternative syntax to specify the start and end point. You have to use ctrlCommit to apply this effect.

Syntax

Syntax:control ctrlSetPosition [x, y, width, height]
Parameters:
Return Value:Nothing

Alternative Syntax

Syntax:control ctrlSetPosition [startX, startY, endX, endY]
Parameters:
  • control: Control - Control of style Lines.
  • startX: Number - X position of start point.
  • startY: Number - Y position of start point.
  • endX: Number - X position of end point (relative to start point).
  • endY: Number - Y position of end point (relative to start point).
Return Value:Nothing

Examples

Examples:
_textControl ctrlSetPosition [0.5, 0.5]
_lineControl ctrlSetPosition [0.1, 0.1, 0.1, 0.1]
creates a diagonal starting at [.1,.1] and ending at [.2,.2]= Example 1

Additional Information

See also: ctrlPosition
Multiplayer: 
Problems: 

Notes