Web Page
The Web Page () form object can display the contents of a web page as part of the user interface. You can, for example, use it to provide information about the application. Enter the name of the web page object in the Name field.
The Settings window contains the following sections.
Source
You can specify the page source in three different ways from the Source list:
Use the default option, Page, to enter HTML code in a text area below the list, enclosed by the <html> and
</html> start and stop tags.
Use the URL option to point to an online web page, which you specify in the Page URL field.
Use the File option to point to a local file resource containing HTML code. Type the name of the file in the File field or click Browse to locate the file on the local file system.
Under Browser preview, you can see a preview of what the display of the web page will look like.
Appearance
Under Appearance, you can control the initial state of the web page object when users run the application. By default, the web page object is visible and enabled. Clear the Visible or Enabled check box if you want to make the initial state so that the web page object is hidden or unavailable. You can then make it visible or enable it using a method. In the Form Editor, the state of the form object is indicated by a change in its appearance. Objects that are hidden become visible when selected in the Form Editor.
Position And Size
This section contains all layout settings for a web page in the grid of the parent form.
You can control the horizontal and vertical alignment of the web page object using the following lists:
From the Horizontal alignment list, choose Left, Center, or Right.
From the Vertical alignment list, choose Middle, Top, or Bottom.
In the grid mode, you can also choose Fill, which automatically expands the form object to fill the cell in the horizontal or vertical direction (where applicable).
The need to specify the alignment is most obvious when working in the grid mode, as it controls how the form object is aligned in its grid cell. Aligning the form object is useful in the sketch mode too. When running the application in any client other than the Windows client, the form objects may not be positioned exactly as seen in the form windows. This is because the form objects may have a different size in other clients, giving them a slightly different positioning. Specifying the alignment ensures that the form objects are aligned as you want them to be in all clients.
You can also specify the width and height of the web page object. Enter a width (in points) in the Width field and a height (in points) in the Height field. If you have chosen Fill from the Horizontal alignment list, you can instead specify a Minimum width. Choose Automatic to compute the minimum width automatically (typically, this means a minimum size of 0), or choose Manual to specify a minimum width in the text field underneath. If you have chosen Fill from the Vertical alignment list, you can instead specify a Minimum height. Choose Automatic to compute the minimum height automatically (typically this means a minimum size of 0), or choose Manual to specify a minimum height in the text field underneath.
Additionally, in the sketch mode, you can specify the absolute position of the web page using the Position x and Position y fields. In the grid mode, you can position the object in the grid and see the grid position as the Row, Column, Row span, and Column span values.
Cell Margin
Under Cell margin (in grid mode only), you can control the margins around the form object. By default, the margins are taken from the parent form. From the Cell margin list, choose:
None, for no margin around the form object
From parent form (the default), to use the margins set for the parent form
Custom, to specify the margins for the form object in the Horizontal and Vertical text fields