How To : Creating Popups
Contents |
[edit] Description
This document describes how to add up a popup dialog to your project.
[edit] Prerequisites
Bungee Logic Open Dialog Statement
[edit] Procedure
To add a popup dialog to your project:
- Choose a location, usually in a function, where you what to add a popup dialog.
- Open the function in the Design Editor.
- From the Toolbox, drag an Open Dialog statement into your function.
- Set the parameters for the open dialog statement:
To set a popup dialog to be an embedded popup:
- Select the open dialog statement.
- In the Property Editor, for the Advanced property, click the ellipsis button [...].
- In the dialog box that's displayed, click the Popup tab.
- Select the Embedded Popup property.
Note Embedded popup is a new feature.
To set DefaultStickyPopup for the dialog:
- After adding open dialog to your function, in the Property Editor, click the ellipsis button next to Advanced.
- In the dialog box that's displayed, click the Style tab.
- For StyleSheet, change Path in the drop down box to Type.
- Click the ellipsis button next toType.
- In the dialog box that's displayed, click the Dependencies tab.
- Expand SystemStyles and select DefaultStickyPopup.
- Click OK.
- Close the remaining dialog box.
[edit] Error Handling
[edit] Examples
The following image shows the showPerson function opened in the Design Editor, with the open dialog statement selected. In the Property Editor, you can see that the Target property has been set to the person, and person is a member of the PopupDialog class.
The following screen shot has the same configuration as the screen shot above, with Person selected in the Solution Explorer. In the Property Editor, notice that the Form property has been set to Detail. Detail is a form and a member of the Person class.
[edit] Next Steps
[edit] Tags