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 line image 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.

Do you want...

Then use...

to change the name of the line that identifies it to the procedure?

the (Name) Property property.

to change the size or location of the line?

the Bottom Property, Left Property, Right Property, and Top Property properties.

a style sheet.

(You can also move or resize the line directly in the form.)

to change the line's color or width?

the ForeColor Property property to determine the line's color.

the PenWidth Property property to determine the line's width.

a style sheet.

to make the line inactive or make it invisible?

the Enabled Property property to determine whether the line is active or not. (If the line is inactive, it will be grayed out and nothing will happen when the end user clicks it.)

the Visible Property property to determine whether the line is visible to the end user.

a style sheet.

to change what the cursor looks like when it is on top of the line?

the CursorPointer Property property.

a style sheet.

to display a tool tip when the cursor is on top of the line?

the ToolTipText Property property.

to assign a help topic to the line?

the Help property. For more information, see Assigning Help to Your Forms and Controls.

to move the line to another layer?

the Layer property. For more information, see Layering Controls.

to control the display order of the line when more than one control is overlaid?

the ZIndex Property.

Note: IE7 or equivalent required.


WebFOCUS