To edit one or several dialog elements as a whole, you can use the entries provided in the
menu. These entries enable you to reuse dialog elements for similar contexts instead of creating them from scratch.The following topics are covered below:
To cut a dialog element
Select the dialog element.
From the
menu or from the dialog element's context menu, choose .Or:
Select the "Cut" toolbar button.
Or:
Press SHIFT+DEL or CTRL+X.
The selected dialog element and any of its child dialog elements is cut to the clipboard for pasting elsewhere, for example into other dialogs.
Note:
You can also select several or all dialog elements in a dialog and
cut them all at once.
To copy a dialog element
Select the dialog element.
From the
menu or from the dialog element's context menu, choose .Or:
Select the "Copy" toolbar button.
Or:
Press CTRL+INS or CTRL+C.
The selected dialog element is copied to the clipboard for pasting elsewhere. If the selected dialog element has child dialog elements you will be prompted as to whether these should also be copied or not.
Note:
You can also select several or all dialog elements in a dialog and
copy them all at once.
To paste a dialog element from the clipboard
From the
menu or from the dialog element's context menu, choose .Or:
Select the "Paste" toolbar button.
Or:
Press SHIFT+INS or CTRL+V.
The dialog element in the clipboard is pasted into the current container in the current dialog. The current container is the lowest level dialog element containing the selected dialog elements which is not the selected dialog element itself. If you are pasting a dialog element back into the same container from which it was copied, the original dialog element is overlaid by the copy. You then have to move the pasted dialog element to its new location. (The pasted dialog element is preselected by default.) Note that if it is desired to paste dialog elements into an empty container, a dummy child dialog element must be created and selected first.
Note:
You can paste several or all dialog elements in a dialog if you have
cut or copied them to the clipboard at once.
To delete a dialog element
Select the dialog element.
From the
menu or from the dialog element's context menu, choose .Or:
Select the "Delete" toolbar button.
Or:
Press DEL.
A dialog box appears asking you to confirm the deletion.
Choose
.The selected dialog element is deleted, together with any of its child dialog elements.
Note:
You can also select several or all dialog elements in a dialog and
delete them all at once.
To select all dialog elements in a dialog
From the
menu or from the dialog element's context menu, choose .If a dialog element is selected, all unselected dialog elements with the same parent become selected. If no dialog element is selected, all top-level dialog elements become selected.
To edit a dialog element's attributes
Select the dialog element.
From the
menu or from the dialog element's context menu, choose .Or:
Double-click on the dialog element.
Or:
Press ENTER.
The dialog element's attributes window appears. To find out what the entries in the attributes window mean, choose "Help". For context-sensitive help, select the attribute entry and press F1.
Enter the desired attribute values.
Choose
to confirm your changes.To edit a dialog element's event handlers
Select the dialog element.
From the
menu or from the dialog element's context menu, choose .Or:
Press SHIFT+ENTER.
The dialog element's event handler section appears.
Select the event (such as click or double-click).
To view the event parameters of an ActiveX control, select the
button.Enter the desired event code in free form, either directly in the window itself or by using the Program Editor by selecting the
push button, then closing the window with the push button.Or:
Choose "Use" to enter a user-defined event.
This code will be executed when the event occurs for the dialog element. Note that if you have specified code in the before-any and after-any event sections, this will be triggered before and after the code entered in Step 4. So if you need common event code, you only have to enter it once in your dialog's before-any and after-any event section.
Choose
to save your code.To unify the size of several dialog elements
Select all dialog elements whose size is to be unified.
Select the dialog element that has the reference width or height.
From the
menu, choose either or .The dialog elements are aligned to the width or height of the reference dialog element.
To align the position of several dialog elements
Select all dialog elements whose position is to be aligned.
Select the dialog element that has the reference position.
From the
menu, choose one of the following commands: .
The dialog elements are aligned to the position of the reference dialog element.
To unify the spacing between several dialog elements
Select all dialog elements between which you want to unify spacing.
From the
menu, choose either or .The spaces between the dialog elements are now distributed evenly.
To stretch a dialog element in a particular direction
Select the dialog element to be stretched.
From the
menu, choose , where direction is, for example, .A cursor appears indicating that you can stretch the dialog element.
Drag the cursor with the mouse until your dialog element has the desired size.
Use the left mouse button to fix the dialog element's size.
The dialog element is now resized; as it is still selected, you can edit it further.
Note:
You can also select several dialog elements and stretch them all at
the same time.