Using Frames

In this section:

How to:

Reference:

The Frame control enables you to launch a web link in a frame on your form instead of a separate window.


Top of page

x
Procedure: How to Launch a Web Link in a Frame
  1. Select the Frame control in the Controls palette.
  2. Draw a rectangle on your form approximately where you want your frame to be, at approximately the size you want.
  3. Give your frame a more meaningful name than Framen. This is optional, but recommended.
  4. If necessary, readjust the size and placement of your frame.
  5. Double-click the frame, or select the Source property to open the URL Link dialog box.
  6. If you have an existing web link that you would like to use, select its name from the Use the URL link from this resource list.

    Otherwise, click New to create a new web link. For more information, see How to Create a Web Link.

  7. Click OK.

Top of page

x
Reference: URL Link Dialog Box

You use this dialog box to specify the URL link for a frame on your form.

URL link dialog box

This dialog box has the following fields:

Use the URL link from this resource

Enables you to select one of the web links you have already defined in your project.

New...

Opens the Link Editor dialog box, where you can define a new web link.

Edit...

If you select a web link from the list above, clicking here opens the Link Editor dialog box, where you can edit an existing web link in your project.


Top of page

x
Changing Frame Properties

When you select your frame, you will see a list of frame properties in the property sheet. Changing these properties will change what your frame looks like and how it behaves 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 the property based on the task you wish to perform:

If you want to change the contents of the frame, use the Source Property to open the URL Link dialog box. For more information, see the URL Link Dialog Box.

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

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

If you want to add scroll bars to the frame, scrolling is automatically provided by the browser at run time if the content exceeds the size of the frame control.

If you want to add a border to the frame, use the Border Property or use a style sheet. For more information, see Border Property.

If you want to make the frame invisible, use the Visible Property or use a style sheet. For more information, see Visible Property.

If you want to display a tooltip when the cursor is on the top of the frame, use the ToolTipText Property. For more information, see the ToolTipText Property.

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

If you want to control the display order of the frame when more than one control is overlaid, use the Zindex Property. For more information, see the ZIndex Property.

Note: Internet Explorer 7 or equivalent is required.


WebFOCUS