Understanding the IBM WebFacing Tool: A Guided Tour (IBM Illustrated Guide series)

Although you have improved the Web user interface so that the green-screen style is not as apparent as it is after basic WebFacing conversion, you can still add extra refinements to your Web pages. I will show you how you can do this with the WebFacing Tool style properties.

Start the WebFacing Style Properties Dialog

First, you will use the WebFacing style properties dialog to tailor your Web user interface.

You will apply changes to the window layout of your screens, thus changing the subfile appearance, and you will enhance the command key push button appearance.

The project properties dialog opens as shown in Figure 9.1.

Figure 9.1: The WebFacing project properties dialog

The window properties page opens on the right pane of the dialog as shown in Figure 9.2.

Figure 9.2: Window properties page

In the Foreground group box,

In the color selection dialog,

Back in the Foreground group box,

In the Font dialog,

In the Background group box,

In the color selection dialog,

Back in the window properties page,

In the Border color combination box at the bottom of the page,

In the color selection dialog,

Changing the Appearance of the Subfile

The subfile properties page opens on the right pane of the dialog, as shown in Figure 9.4.

Figure 9.4: Subfile properties page

In the Background group box,

In the Color chooser dialog,

Tip  

If you are interested in the hex value of certain colors as they are used in the style classes, the Color chooser displays the hex values. In Figure 9.5, the hex value is FFFFCC.

Figure 9.5: Color chooser for WebFacing properties

Back on the properties dialog,

In the Background group box,

In the Color chooser dialog,

Now at run time the odd and even records will be displayed with different background colors.

Next, you will customize the appearance of the command key push buttons .

Customizing the Appearance of Command Keys

Return to the left side of the properties dialog. Under Style in the tree view,

The command keys properties page opens on the right pane of the dialog, as shown in Figure 9.7.

Figure 9.7: Command keys properties page

In the Foreground box, change the color for all three states of the buttons:

Your customizations are complete.

Running the Web Application

Now you can see the new look of your application.

The application window in Figure 9.8 shows different colors, and the subfile records are also colored. The command key push buttons change color, depending on the state they are in.

Figure 9.8: New window and subfile styles applied

Категории