Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


How Controls are Ordered in Dialog Editor

Keywords: 	 order controls

Question:

Is there any function to set a field active when a dialog box is opened. e.g.,
******************************************
* USERNAME ....... < OK > *
* PASSWORD ....... < CANCEL > *
******************************************
where the cursor is active in the USERNAME field when the dialog opens?

Answer:

Put the username edit box as the first dialog edit control (eg: dialog01).

The "tab order" of the controls written by the dialog editor is the same as the order they were defined. Instead of drawing the dialog box over again though, you can edit the script.

In the dialog script each control is numbered, kinda like:

MYDIALOG01="ssdsdsdsdsd"
MYDIALOG02="sdsdsdsdsdsd"
MYDIALOG03="dfddfrere"
The rule is (short version) that the screen will open up on the lowest numbered control that can accept any kind of input. You can just renumber the controls to your liking.

Also the tab order is also controlled by this. Just arrange all the input controls in the desired tab order by changing the two digit numbers at the end of the variable name.


Article ID:   W12853
Filename:   Order of Controls in Dialog Editor.txt