4D v16.3OPEN SETTINGS WINDOW |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16.3
OPEN SETTINGS WINDOW
OPEN SETTINGS WINDOW
The OPEN SETTINGS WINDOW command opens the Preferences dialog box of 4D or the Database Settings of the current 4D application and displays the parameters or the page corresponding to the key passed in selector. The selector parameter must contain a “key” indicating the dialog box and the page to opened. This key is constructed as follows: /Dialog{/Page{/Parameters}}. Dialog indicates the dialog box to be displayed: you can pass "4D" (for the Preferences) or "Database" (for Database Settings). For example, to indicate the Compiler page of the Database Settings, selector should contain "/Database/Compiler". The list of keys that can be used is provided below. If you just pass a slash ("/") in selector, the command displays the first page of the Database Settings dialog box. The access parameter lets you control user actions in the Preferences or Database Settings dialog box by locking the other pages. Typically, you may want for the user to be able to customize certain parameters while preventing others from being modified. In this case, passing True in the access parameter means that only the page specified by the selector parameter will be active and modifiable, while access to all other pages will be locked (clicking on the buttons in the navigation bar will have no effect). If you pass False or omit the access parameter, all the pages of the dialog box will be accessible with no restriction. The settingsType parameter is taken into account in databases configured in "User settings" mode only (in this mode, custom "User settings" or "User settings for data file" are generated in an external file and used instead of the standard settings, see the User settings section in the Design Reference manual). In this context, this parameter lets you indicate whether you want to access the "Structure settings", the "User settings", or the "User settings for data file" dialog box. You pass one of the following constants, found in the "4D Environment" theme:
If you pass an invalid key, the first page of the Database Settings dialog box is displayed. Here are the keys that can be used in the selector parameter in standard mode, in other words with the "Structure settings": /4D Compatibility note: You can still use keys defined for 4D versions 11.x or previous using this command; 4D automatically establishes the correspondence. However, we recommend that you replace the former calls with the keys listed above. Here are the keys that can be used in the selector parameter in "User settings" mode: /Database Open the “Methods” page of the 4D Preferences: OPEN SETTINGS WINDOW("/4D/Method editor") Open the “Shortcuts” parameters in the Database Settings while locking the other settings: OPEN SETTINGS WINDOW("/Database/Interface/Shortcuts";True) Open Database Settings on the first page: OPEN SETTINGS WINDOW("/") Access to the Interface page of the Database settings in "User settings" mode: OPEN SETTINGS WINDOW("/Database/Interface";1) If the Preferences/Settings dialog box is validated, the system variable OK returns 1. Otherwise, it returns 0.
|
PROPERTIES
Product: 4D HISTORY
TAGS Database settings, Database parameters, Preferences, Settings ARTICLE USAGE
4D Language Reference ( 4D v16) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||