# Tabbed Dialogs

The dialog editor can be used to create tabbed dialogs or to convert existing dialogs to be tabbed. Using a tabbed dialog you can attach sets of controls to overlapping “pages”. Only the top page can be seen; all other pages and attached controls remain hidden underneath. The only visible portion of a page is a small rectangular area containing its name, or a tab. Clicking on the tab will bring its page to the top of the page area and show all controls attached to it.

To create a tabbed dialog, you must first make sure that the area on the dialog box where the pages are to be placed is cleared of controls (they should be moved or temporarily cut to the clipboard.) Create a page by dragging it from the palette onto the dialog box. Any number of pages can be dropped onto the dialog box. The page area can be resized and moved.

Dropping a control onto the top page will automatically attach it to that page. Controls can be dragged from the mode palette, pasted from the clipboard, or moved onto the top page.

The page area is not automatically resized when controls are dropped onto the top page. It should be sized manually prior to adding controls.

To remove a page, first remove all controls it contains then use the “Edit/Cut” or “Edit/Delete” option. Using the “Edit/Properties” option you can set the following attributes of the selected page:

Label – The text label shown on the “tab” part of the page.

Icon name – The resource or file name (without extension) of the bitmap shown on the front of the tab.

See Also

Controls.