Common items


■ Properties

The following table is a list of properties that can be used with all controls.

These properties can be used in the JavaScript entry area by entering this. + "property name".

Property name Default value Description
x The coordinate where the control has been placed This property sets the X coordinate of the control. 0 is the left edge of the layer. The unit is pixels (px).
y The coordinate where the control has been placed This property sets the Y coordinate of the control. 0 is the top edge of the layer. The unit is pixels (px).
width - This property sets the width of the control. The unit is pixels (px).
height - This property sets the height of the control. The unit is pixels (px).
visible true This property sets the visibility of the control. This property must be used by entering "this.isVisible" when used from JavaScript.
angle 0 This property sets the rotation angle of the control. The unit is degrees, it can be set to 0 or more and less than 360. The direction of rotation is clockwise.
rotation center 16 (center) This property sets the rotation center position of the control. From Javascript, use the getRotationCenter / setRotationCenter function.
skew 0 This property sets the skew of the control.
If a positive value is specified, the lower side of the control shifts to the right, and if a negative value is specified, it shifts to the left.

■ Functions

The following table is a list of functions that can be used with all controls.

The following functions can be used in the JavaScript entry area by directly entering the function name.

Function name Arguments Return value Description
$setVar variable, value - This function sets the value for the target variable link. Specify the target variable link in the variable argument as a string and the value in the value argument.
$getVar variable, CreateIfNotExist value This function gets the value from the target variable link. Specify the target variable link in the variable argument as a string. Specify true or false for the CreateIfNotExist argument. If true is specified and the target variable link does not exist, a new variable link is created.
$setProp id, property, value - This functions sets the value of a property in the target control. Specify the ID of the control as a string in the id argument. Specify the property name as a string in the property argument. Specify the value in the value argument.
$getProp id, property value This functions gets the value of a property in the target control. Specify the ID of the control as a string in the id argument. Specify the property name as a string in the property argument.

The following functions can be used in the JavaScript entry area by directly entering this. + "function name".


Function name Arguments Return value Description
setLocation x, y - This function sets the position of the control. Specify the x coordinate in the x argument and the y coordinate in the y argument.
setSize width, height - This function sets the position of the control. Specify the width in the width argument and the height in the height argument.
setVisible visible - This function sets the visibility of the control. Specify true or false in the visible argument.
setAngle angle - This function sets the rotation angle of the control.
Specify the value of degree in the angle argument.
setRotationCenter center - This function sets the rotation center position of the control.
Specify the following value in the center argument.
5:top left, 20:top, 6:top right, 1:left, 16:center, 2:right, 9:bottom left, 24:bottom, 10:right-bottom
getRotationCenter - center This function gets the property of rotation center.
setSkew skew - This function sets the skew of the control.
If a positive value is specified, the lower side of the control shifts to the right, and if a negative value is specified, it shifts to the left.