home *** CD-ROM | disk | FTP | other *** search
- %REM
- This template demonstrates creating a Modeless Dialog Box.
- You will need to use the Lotus Dialog Editor to create the Dialog Box.
- 1. With your cursor in the main document, select Edit/ Scripts & Macros/ New Custom Dialog.
- 2. Paste your Custom Dialog Box into the new section
- 3. Change the Section tab to the name you will use to reference the dialog.
- 4. Modify the code below as needed for your application.
- %ENDREM
-
- 'Place this line in the Declarations section of your script
- Dim Dlg As LWPCustomDialog
-
- If not (Dlg is Nothing) then
- Delete Dlg
- End If
-
-
- 'NameOfDialog is the name of the division tab that contains the dialog code
-
- Set Dlg = Bind("!NameOfDialog")
- Dlg.Modal = False
-
- 'If you have any values that need to be inserted into the dialog prior to displaying, use the following
- 'Methods:
- ' Dlg.AddListBoxText( Control_ID, Text )
- ' Dlg.SetControlText( Control_ID, Text )
- ' Dlg.SetControlValue( Control_ID, Value )
- 'This line fills and edit box with some dafault text
- Dlg.SetControlText 8000, "Type Company Name Here"
- 'This line sets a radio button to selected
- Dlg.SetControlValue 20, True
-
- 'Use the "On Event" command to manually set up a subroutine that will perform the necessary functions
- 'The Script Editor will automatically provide event subroutines to handle
- 'dialog events
- 'On Event DialogEvent From Dlg Call MyDialogEvent
-
- Dlg.Show(1)
-
-