Child pages
  • Rectangle
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 21 Next »


Property Summary
Number #anchors
Enables a component to stick to a specific side of form and/or to
grow or shrink when a window is resized.
String #background
The background color of the component.
String #borderType
The type, color and style of border of the component.
Boolean #enabled
The enable state of the component, default true.
String #foreground
The foreground color of the component.
Number #lineSize
The width of the line used for drawing the rectangle.
String #location
The x and y position of the component, in pixels, separated by a comma.
String #name
The name of the component.
Number #printSliding
Enables an element to resize based on its content and/or move when printing.
Boolean #printable
Flag that tells if the component should be printed or not when the form is printed.
Number #roundedRadius
The rounding radius in pixels.
Number #shapeType
The type of the shape.
String #size
The width and height (in pixels), separated by a comma.
Boolean #transparent
Flag that tells if the component is transparent or not.
Boolean #visible
The visible property of the component, default true.

Property Details
anchors

Enables a component to stick to a specific side of form and/or to
grow or shrink when a window is resized.

If opposite anchors are activated then the component with grow or
shrink with the window. For example if Top and Bottom are activated,
then the component will grow/shrink when the window is vertically
resized. If Left and Right are activated then the component
will grow/shrink when the window is horizontally resized.

If opposite anchors are not activated, then the component will
keep a constant distance from the sides of the window which
correspond to the activated anchors.

Returns
background
The background color of the component.
Returns
borderType
The type, color and style of border of the component.
Returns
enabled
The enable state of the component, default true.
Returns
Boolean – enabled state
foreground
The foreground color of the component.
Returns
lineSize
The width of the line used for drawing the rectangle.
Returns
location
The x and y position of the component, in pixels, separated by a comma.
Returns
name
The name of the component. Through this name it can also accessed in methods.
Returns
printSliding
Enables an element to resize based on its content and/or move when printing.
The component can move horizontally or vertically and can grow or shrink in
height and width, based on its content and the content of neighboring
components.
Returns
printable

Flag that tells if the component should be printed or not when the form is printed.

By default components are printable.

Returns
roundedRadius
The rounding radius in pixels.
Returns
shapeType
The type of the shape. The type can be BORDER_PANEL, RECTANGLE, ROUNDED_RECTANGLE or OVAL.
Returns
size
The width and height (in pixels), separated by a comma.
Returns
transparent

Flag that tells if the component is transparent or not.

The default value is "false", that is the components
are not transparent.

Returns
visible
The visible property of the component, default true.
Returns
Boolean – visible property
  • No labels