Microsoft KB Archive/61908

Controlling the Tab Order in WordBASIC Dialog Boxes

PSS ID Number: Q61908 Article last modified on 05-14-1991

1.00

MS-DOS

Summary: WordBASIC’s dialog control definition statements are interpreted from top to bottom. This means that tabbing between items in the dialog box proceeds according to the order that the items appear from top to bottom in the macro code.

More Information: Knowing this allows you to correct for a tabbing order that proceeds out of logical sequence or lets you decide which item in the dialog box will be active when you run the macro. It also lets you set a critical path through your dialog box. Use the following outline to set a logical pattern: 1. Place all critical items (must get input to proceed) at the top in the Dialog Box Description code. 2. Place the OK and Cancel buttons just below all the critical items in the Dialog Box Description code. 3. Place all noncritical items (rarely used or needed) below the OK and Cancel buttons in the Dialog Box Description code. Now when the dialog box comes up in the macro, you can tab through the critical items only and press OK without having to provide input to noncritical items.

Reference(s):

Additional Keywords: w4wmacro