class line

superclass(es) customControl
subclass(es) -
description This class is a control that can only display a line with a 3D effect, it can be used to visually group or separate other controls on a panel window.

pl_img132.gif (1636 bytes) pl_img133.gif (1655 bytes)
see also groupBox

tasks

A line control is a control which does not process user input, it can only display a line with a 3D effect. Horizontal and vertical lines can be drawn, the size of the 3D line is always 2 pixels. The default is that the control draws itself as a vertical line.

The line can give a raised or lowered effect, in the image below a vertical with a raised effect is drawn on the left side. In the second image the top horizontal line is drawn with a raised effect.

pl_img134.gif (1692 bytes)   pl_img135.gif (1684 bytes)

methods

raised(Output)

func Check if the line is drawn with a raised effect or not.
pre TRUE
post If the line control draws itself with a raised effect then was true unified with the parameter Output, else false.

putRaised(YesNo)

func Determine if the line control draws itself with a raised or a lowere effect.
pre The value of the variable YesNo must be a boolean value.
post If the value of YesNo was true then the control will draw itself as a raised line, else not.

horizontal(Output)

func Check if the line control draws itself as a horizontal line or not.
pre TRUE
post If the line control draws itself as a horizontal line then was true unified with the parameter Output, else false.

putHorizontal(YesNo)

func Determine if the line control draws itself as a horizontal or as a vertical line.
pre The value of the variable YesNo must be a boolean value.
post If the value of YesNo was true then the control will draw itself as a horizontal line, else as a vertical line.