# Arranging the Display and Buttons

1. Open the Resource View pane; expand the tree to show the contents of the "Dialog" sub-group.
2. Double-click IDD_<Project name>_DIALOG to open the dialog editor.
3. Select and delete the "TODO" label.
4. Open the Toolbox pane; click and drag a new "Custom control" into the dialog editor.
5. Resize the custom control to fill dialog as appropriate; this will become the VisionPro display area.
6. Right-click the custom control, choose Properties, and set Class to VisionDisplay.
7. Right-click the custom control, choose Add variable...:
   1. Set Name to m_display
   2. Set Variable type to Cognex::Vision::Display::RecordCollectionDisplay
   3. Click Finish.
8. From the Toolbox, click and drag a new "Button" into the bottom-left corner of the dialog.
9. Right-click the button, choose Properties, and set the Caption to Run tool
10. Right-click the button again, choose Add Event Handler...:
11. Select "C<Project name>Dlg" from the Class list.
12. Change the Function name to OnBnClickedRunTool
13. Click OK.