Creating custom dialog boxes
You can create custom dialog boxes in Quattro Pro. Dialog boxes are stored on the Objects sheet and saved with the notebook in which they are created.
You can add controls to dialog boxes. When you add a control to a dialog box, it is inactive. For example, list boxes do not contain information and check boxes are not linked to anything. For information about activating controls and buttons, see “Attaching actions to dialog box controls.”
Adding labels to dialog box controls lets you identify the purpose of each control. Some controls have a label text property that is used to display a label with the control (for example, buttons).
You can hide controls when they are not relevant.
Whenever a change is made to the dialog box, you can test the dialog box and its controls. For example, you can test a new control after assigning properties or creating links to see if the control behaves in the manner intended. When in Test mode, the dialog box displays as it will in the application. In Test mode, you cannot activate any other windows to display as the active object unless you have configured a control in the dialog box to do so. For example, you can have a second custom dialog box display only when you click a button on the first dialog box.
For more information about controls, see “Properties of dialog box controls” and “Properties of form controls.”
To create a custom dialog box |
1.
|
|
Click Tools Macro Dialog designer.
|
2.
|
|
Right-click the dialog box background, and click Dialog properties Name.
|
3.
|
|
Type a name for the title bar in the Enter text box.
|
4.
|
|
Click OK.
|
5.
|
|
Right-click the dialog box background, and click Dialog properties Title.
|
6.
|
|
Type a title in the Enter text box.
|
•
|
|
You cannot save a file when creating a custom dialog box unless you deactivate the dialog designer by clicking the spreadsheet.
|
•
|
|
Password protection rights can be assigned to dialog boxes. For information about working with passwords, see “Using password protection.”
|
•
|
|
You can also create a dialog box on the Objects sheet by clicking the Quick tab button at the bottom of the application window, and clicking the Create dialog box button.
|
To add a control to a dialog box |
1.
|
|
Click the Quick tab button at the bottom of the application window to display the Objects sheet.
|
2.
|
|
Double-click a dialog box.
|
3.
|
|
Click Insert, and click a control to add.
|
4.
|
|
In the dialog box, drag diagonally to create the control.
|
5.
|
|
Right-click the control, and click Connect.
|
6.
|
|
Type the cell reference in the Target field.
|
If you want to immediately send control value changes to a cell or another control, enable the Dynamic connection check box.
|
•
|
|
For information about the behavior of specific controls, see “Understanding dialog box controls.”
|
•
|
|
If you want to customize a control, right-click the control, click Properties, and click any option in the submenu that displays.
|
To add a label to a dialog box control |
1.
|
|
Click the Quick tab button at the bottom of the application window to display the Objects sheet.
|
2.
|
|
Double-click a dialog box.
|
3.
|
|
Click Insert Label text.
|
4.
|
|
Click where you want to add the label.
|
If you need more room, drag the control to a new location.
|
5.
|
|
Double-click the label.
|
6.
|
|
Type the label text.
|
•
|
|
You can also add a label to a dialog box by clicking the Label tool on the property bar.
|
To hide a control on a dialog box |
1.
|
|
Click the Quick tab button at the bottom of the application window to display the Objects sheet.
|
2.
|
|
Double-click a dialog box.
|
3.
|
|
Right-click a control, and click Properties Hidden Yes.
|
•
|
|
When the Hidden property is applied, the control still displays in the dialog window while you are editing, but will disappear when you test the dialog box with the Test button.
|
To test a dialog box |
1.
|
|
Click the Quick tab button at the bottom of the application window to display the Objects sheet.
|
2.
|
|
Double-click a dialog box.
|
3.
|
|
Click the Test button on the property bar.
|
4.
|
|
Test the dialog box.
|