04.08.2013 Views

Printing - FoxTalk - dFPUG-Portal

Printing - FoxTalk - dFPUG-Portal

Printing - FoxTalk - dFPUG-Portal

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Tabbed interfaces, such as those implemented with Visual FoxPro PageFrames, are useful, but<br />

some users may prefer alternatives. Paul Russell explores an innovative way to implement<br />

multipage forms in FoxPro 2.x for Windows (or Macintosh), and provides a sidebar with tips for<br />

implementing the idea in Visual FoxPro and the character-based 2.x platforms.<br />

By now, most of you have probably become familiar with the tabbed interface style for dialog<br />

boxes. This style was developed for screens that have too much information to display at one<br />

time. For example, the Visual FoxPro Project Manager dialog box has a number of different<br />

"Tabs" across the top, each referring to a specific set of information. This Tab style has become<br />

so standard, in fact, that it has been incorporated as a design tool in Visual FoxPro (see Figure<br />

1).<br />

The FoxPro community is fortunate to have Ken Levy's GENSCRNX with a Tabs driver to<br />

perform the same type of thing in FoxPro for Windows. This tool allows you to have a set of<br />

pages immediately available for a single record, and have all of this information contained in a<br />

single Screen Set.<br />

While this is a useful tool, there are a number of drawbacks. For example, I'm developing an<br />

application with 14 sub-screens that contain information. It would have been impossible to use<br />

the tabbed style and still see what each tab represented (the standard Tabs driver allows only a<br />

single row of tabs that become thinner as more tabs are added). Also, with the standard Tabs<br />

driver, all of the screens are contained within a single Screen Set and all are defined at once. This<br />

displays all of the sub-screens when the screen is first started, which would have confused the<br />

users of this particular application more than it would have helped them.<br />

Requirements of a new style<br />

For this application, using the tabbed style was clearly not the way to go. Instead, I needed a way<br />

to do the following:<br />

• Select any one sub-screen directly, from more than 10 sub-screens.<br />

• Display an obvious visible indicator of which sub-screen was active.<br />

• Be able to select the next/previous sub-screen easily.<br />

• Move directly back to the first sub-screen.<br />

• Avoid displaying all of the sub-screens at the beginning.<br />

• Display text or a bitmap as the prompt for the button.<br />

The solution that I came up with resembles the appearance of the View dialog box in FoxPro for<br />

Windows (see Figure 2). This style displays a set of buttons vertically down the left side of the<br />

sub-screens, and the current sub-screen is indicated by the depressed button. ON KEY labels<br />

were set up so that users could move to the next or previous sub-screen by pressing the PgDn<br />

and PgUp keys. They could move to the first sub-screen by pressing the Home key (while this

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!