Order/Group

This command displays controls in their current order.

The Order/Group command opens the Order/Group dialog box. The Order/Group dialog list box displays all controls in their current order, which is the order in which they were created.

Setting Tabstops

When the user of your dialog presses the TAB key, the focus moves through the controls in order, stopping at each one that has its tabstop set.

Controls that can use the focus have a tabstop set by default. (A push button, for example, has a tabstop, but a group box frame doesn't.)

·To set tabs:

1.Select a control or controls.

2.Press the Set Tab button.

·To clear tabs:

Press the Clear Tab button.

You can also double-click a control to toggle the tab on or off. A tab symbol appears in front of the control in the list box when a tab is set.

Changing Control Order

·To change control order:

1.Select the control.

2.Move the cursor to the new position for the control. The cursor will change shape when it is at a valid position between lines.

3.Click the mouse to reposition the control.

·To select a range of controls:

Drag down the list with the mouse.

Or gather controls by holding down the CTRL key as you click on them. Reposition the controls as usual.

The controls will be gathered as well as repositioned. You may follow this step by making the gathered controls a group, since they remain selected. (See the next section.)

Group boxes should always be ordered before the controls within them are ordered.

Making Groups

You can also group controls within the Order/Group dialog box. The user can use the arrow keys to move the focus through the members of a group.

If you have two or more independent groups of radio buttons in a dialog, you should also group them in this dialog box so that Windows will handle their logic properly. When you press a radio button in a group, Windows will alter only the buttons in the group.

·To make a group:

1.Select a number of controls in the dialog's list by dragging with the mouse.

2.Click the Make Group button.