Prefs.PreferencesDialog() Method
Display the ACP Preferences dialog and show the specified panel/tab
Syntax
Prefs.PreferencesDialog(Panel)
The method syntax has these parts:
| Part |
Description |
| Panel (Integer) |
The index of the panel (tab) to display |
| Return (Boolean) |
True if the Preferences dialog was closed with the OK button, else False (Cancel button was used) |
Remarks
Causes the ACP Preference dialog to be displayed, showing the given panel/tab (see the table below). The return value indicates which button (OK or Cancel) was used to dismiss the dialog. Mainly useful in documentation where you can provide a button to show a particular Preferences panel. The ACP online help "Getting Started" pages make use of this feature.
Panel Values
| Panel # | Panel Name |
| 0 | General |
| 1 | Observatory |
| 2 | Telescope |
| 3 | Pointing Corrector |
| 4 | Dome Control |
| 5 | Imaging |
| 6 | Guiding |
| 7 | PinPoint |
| 8 | AutoFocus |
| 9 | Local User |
| 10 | Weather |
| 11 | Servers |
| 12 | Server Users |
| 13 | Agent/Voice |
| 14 | Debugging |
Do not call this method from within a script or ASP page unless you can guarantee that someone will be physically present to dismiss the dialog!
Copyright © 2000-2016, Robert B. Denny, Mesa, AZ