Using Lines

In this section:

How to:

You can place vertical or horizontal lines on your form for visual effect, for example, to separate groups of controls.


Top of page

x
Procedure: How to Place a Line on Your Form
  1. Select the Line control line control in the Controls palette.
  2. Click and hold down the mouse button at the beginning point for your line.
  3. Move the cursor to the ending point for your line and release the mouse button.

    Note: You can only draw horizontal or vertical lines.

  4. If necessary, readjust the size and placement of your line.

Top of page

x
Changing Line Properties

When you select your line, you will see a list of line properties in the property sheet. Changing these properties will change what your line looks like and what it does at run time.

Many of the styling properties can also be changed using a Cascading Style Sheet. For more information on Cascading Style Sheets, see Using Cascading Style Sheets.

Choose your property based on the task you wish to perform:

If you want to change the name of the line that identifies it to the procedure, use the (Name) Property. For more information, see the (Name) Property.

If you want to change the size of the location or size of the line, use a style sheet or resize the line directly in the form. You can also use the Bottom Property, Left Property, Right Property, and Top Property.

If you want to change the color of the line or width, use a style sheet or the ForeColor Property to determine the color of the line. Use the PenWidth Property to determine the width of the line.

If you want to make the line inactive or make it invisible, use the Enabled Property to determine whether the is active or not. If the line is inactive, nothing will happen when the end user clicks it. You can also use the Visible Property to determine whether the line is visible to the end user or use a style sheet. For more information, see the Enabled Property and the Visible Property.

If you want to change what the cursor looks like when it is on top of the line, use the CursorPointer Property or use a style sheet.

If you want to display a tooltip when the cursor is on the top of the line, use the ToolTipText Property.

If you want to assign a Help topic to the line, use the Help Property. For more information, see Assigning Help to Your Forms and Controls.

If you want to move the line to another layer, use the Layer Property. For more information, see Layering Controls.


WebFOCUS