Knowledge Base

PRB: Cannot Use TAB to Move from Standard Controls to Custom

Article ID: 131283

Article Last Modified on 7/11/2005


APPLIES TO


This article was previously published under Q131283

SYMPTOMS

If you press the TAB key as you attempt to customize the Windows Explorer-style File Open or Save As common dialog box, the TAB key fails to move the focus from the standard dialog's controls to the new controls specified in the custom template.

CAUSE

The custom dialog box template failed to specify the DS_CONTROL style.

RESOLUTION

When creating a custom dialog box template to be used with the new FileOpen or Save As common dialog, you must specify the DS_CONTROL style.

STATUS

This behavior is by design.

MORE INFORMATION

With the new way of customizing the File Open or Save As common dialog in Windows 95 or later, you can customize applications to provide a custom dialog box template that adds controls to the default Open or Save As dialog box. This custom dialog box is created as a child of the default dialog box and thus requires a WS_CHILD style.

DS_CONTROL makes a modal dialog created as a child of another dialog interact well with its parent dialog. This style ensures that the user can move between the controls of the parent dialog and the child dialog - or in this case between the standard Open or Save As common dialog and the custom dialog provided by the application.

Keywords: kbcmndlgfileo kbcmndlg kbprb kbcmndlgsave KB131283