Please enable JavaScript to view this site.

CWT User Interface Design Handbook

<Stn:Line        Name='SampleLine1'>

Description

The Line control is used to place a vertical or horizontal line on the display. The Line control is normally used as a separator between other controls on the display.

 

Height

Type:Unsigned integer. Value range 0–128.

Description:Defines the height of the line. If the line is supposed to be horizontal, the Height property will set the thickness of the line.

Location

Type:String in format “X,Y” where X and Y are both unsigned integers.
Value:Value range for X is 0–260
Value range for Y is 0–128.

Description:The Location property specifies where the line shall be placed in relation to the parent control. If a line is defined in a panel, the Location property will specify where inside the panel the line will be positioned. The physical position on the display will then depend on both where the panel is placed (panels also have a Location property) and where the line is placed.

Name

Type:String of any length

Description:The name of the Line control. The Line control doesn’t use any key names, but it is important to create a unique name for each control in the same panel.

Width

Type:Unsigned integer. Value range 0–260.

Description:Defines the width of the line.
If the line is supposed to be vertical, the Width property will set the thickness of the vertical line.

Examples

Horizontal line that is 1 pixel thick (high) and 100 pixels wide:

<Stn:Line   Name='SampleLine1'
  Location='58, 28'
  Width='100'
  Height='1'/>

Vertical line that is 2 pixels thick (wide) and 50 pixels high:

<Stn:Line   Name='SampleLine2'
  Location='80, 10'
  Width='2'
  Height='50'/>