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

Wordperfect Quattro Pro btnbacktotopproc Creating custom dialog boxes
1.
 
Click Tools Wordperfect Quattro Pro onestep Creating custom dialog boxes Macro Wordperfect Quattro Pro onestep Creating custom dialog boxes Dialog designer.
2.
 
Right-click the dialog box background, and click Dialog properties Wordperfect Quattro Pro onestep Creating custom dialog boxes 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 Wordperfect Quattro Pro onestep Creating custom dialog boxes Title.
6.
 
Type a title in the Enter text box.

Wordperfect Quattro Pro note Creating custom dialog boxes

 
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.”

Wordperfect Quattro Pro tip Creating custom dialog boxes

 
You can also create a dialog box on the Objects sheet by clicking the Quick tab Wordperfect Quattro Pro pgx btnsptab Creating custom dialog boxes button at the bottom of the application window, and clicking the Create dialog box button.

To add a control to a dialog box

Wordperfect Quattro Pro btnbacktotopproc Creating custom dialog boxes
1.
 
Click the Quick tab Wordperfect Quattro Pro pgx btnsptab Creating custom dialog boxes 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.

Wordperfect Quattro Pro note Creating custom dialog boxes

 
For information about the behavior of specific controls, see “Understanding dialog box controls.”

Wordperfect Quattro Pro tip Creating custom dialog boxes

 
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

Wordperfect Quattro Pro btnbacktotopproc Creating custom dialog boxes
1.
 
Click the Quick tab Wordperfect Quattro Pro pgx btnsptab Creating custom dialog boxes button at the bottom of the application window to display the Objects sheet.
2.
 
Double-click a dialog box.
3.
 
Click Insert Wordperfect Quattro Pro onestep Creating custom dialog boxes 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.

Wordperfect Quattro Pro tip Creating custom dialog boxes

 
You can also add a label to a dialog box by clicking the Label Wordperfect Quattro Pro pgx ctlabel Creating custom dialog boxes tool on the property bar.

To hide a control on a dialog box

Wordperfect Quattro Pro btnbacktotopproc Creating custom dialog boxes
1.
 
Click the Quick tab Wordperfect Quattro Pro pgx btnsptab Creating custom dialog boxes 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 Wordperfect Quattro Pro onestep Creating custom dialog boxes Hidden Wordperfect Quattro Pro onestep Creating custom dialog boxes Yes.

You can also
Make a control display grayed
Right-click the control, and click Properties Wordperfect Quattro Pro onestep Creating custom dialog boxes Grayed Wordperfect Quattro Pro onestep Creating custom dialog boxes Yes.
Disable a control
Right-click the control, and click Properties Wordperfect Quattro Pro  Creating custom dialog boxes p-content/uploads/sub/quattro-pro/en/source/images/onestep.jpg" height="14" width="9" border="0" hspace="0" vspace="0" align="absmiddle"> Disabled Wordperfect Quattro Pro onestep Creating custom dialog boxes Yes.

Wordperfect Quattro Pro note Creating custom dialog boxes

 
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 Wordperfect Quattro Pro pgx btntest Creating custom dialog boxes button.

To test a dialog box

Wordperfect Quattro Pro btnbacktotopproc Creating custom dialog boxes
1.
 
Click the Quick tab Wordperfect Quattro Pro pgx btnsptab Creating custom dialog boxes button at the bottom of the application window to display the Objects sheet.
2.
 
Double-click a dialog box.
3.
 
Click the Test Wordperfect Quattro Pro pgx btntest Creating custom dialog boxes button on the property bar.
4.
 
Test the dialog box.

Creating custom dialog boxes