Contents Previous Next

Test window

Test view is created simply by loading a part of the resource file using XRC library, so it should look the same as in your application (without the contents and changes performed by the program, of course). There are elements which cannot be tested individually, but only as a part of a subtree.

"Test'' command (View>Test or "radioactive sign'' tool or F5) creates a view of the selected element or subtree. If a top-level element (such as wxDialog) is selected, it is normally created as a top-level window. When the selected element cannot be a top-level window, a miniframe is created and the test view is put inside. Currenly shown parent element is made bold in the tree control while the test window is opened.

It is possible to select an element by clicking on it in the test window after activating the "Locate'' command. While the test window is open, it is possible to create new elements by dragging a component icon on the test window. The parent element is highlighted by a blue box.

Auto-refresh mode


Auto-refresh mode

When auto-refresh is activated, any changes made to the attibutes or the tree structure of the currently selected test subtree provoke test window refresh (reload from the updated resource). Sometimes it may be prefered to freeze the test window while making modifications by deactivating auto-refresh (from the View menu or using Alt+A keyboard shortcut). To force a refresh, press Ctrl+R or select View>Refresh command.