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
0General
1Observatory
2Telescope
3Pointing Corrector
4Dome Control
5Imaging
6Guiding
7PinPoint
8AutoFocus
9Local User
10Weather
11Servers
12Server Users
13Agent/Voice
14Debugging
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!