2.242 .options[enum]
This attribute provides special settings for the respective object classes.
Definition
-
Data type
boolean
-
Access
get, set
-
changed event
no
.options can be addressed with IDM enums. The enum values are as follows:
Obje |
option_index |
Meaning |
---|---|---|
(since IDM version A.06.02.h) |
Determines whether a certificate is required for an SSL connection. |
|
|
(since IDM version A.06.02.h) |
Specifies that version 2 of the SSL protocol is not used for an SSL connection. |
|
(since IDM version A.06.02.h) |
Indicates whether for an SSL connection the opposite side should be verified. |
(IDM for Motif |
Canvas accepts child widgets (i.e. no focus). |
|
|
(IDM for Qt |
Invokes the canvas function for all QEvents. In this case CCR_event is passed as reason. For instance, this enables responding to mouse moves.
|
|
(IDM for Windows |
Controls where the toolhelp is displayed:
|
|
(IDM for Motif |
No focus frame is drawn. |
|
(IDM for Qt |
Determiines whether the Canvas is implemented by a QFrame or a QGraphicsView. Depending on the option value, there are differences in the DM_CanvasUserArgs.
|
|
(IDM for Motif |
Canvas draws Motif shadow border. |
(IDM for Windows |
Controls where the toolhelp is displayed:
|
|
|
(IDM for Windows |
The Checkbox looks like a Pushbutton. |
|
(IDM for Motif |
Does not use gadget, but always widget. |
(IDM for Windows |
This option controls whether the inner border of edittexts is drawn (default) or not. |
|
(IDM for Windows |
Controls where the toolhelp is displayed:
|
|
|
(IDM for Qt |
Controls whether the edittext renders HTML and displays contents formatted accordingly.
|
|
(IDM for Windows |
Controls whether the edittext accepts
|
(IDM for Windows only, |
When selecting an existing file a dialog pops up for safeguarding the creation of a file. |
|
|
(IDM for Windows and IDM for Qt only, |
When selecting an existing file a dialog pops up to confirm overwriting the file. Note on the IDM for Qt For the combination .mustexist = true with .options[opt_overwriteprompt] = true, no dialog will be displayed to confirm overwriting. |
|
(IDM for Motif only, |
The pattern and the current path are displayed separately and the selected file is only shown as file name without directory. |
(IDM for Windows |
Controls where the toolhelp is displayed:
|
|
|
(IDM for Motif only, |
Controls the behavior with focusing and may improve accessibility through keyboard navigation (see chapter “Motif Option .options[opt_scroll_on_focus]”).
|
(IDM for Windows |
Controls where the toolhelp is displayed:
|
|
|
(IDM for Windows and IDM for Qt only, |
Controls if a picture for the insensitive state is generated.
|
(IDM for Windows |
Controls where the toolhelp is displayed:
|
|
|
(IDM for Motif only, |
Controls the behavior with focusing and may improve accessibility through keyboard navigation (see chapter “Motif Option .options[opt_scroll_on_focus]”).
|
(IDM for Windows |
Controls where the toolhelp is displayed:
|
|
|
(IDM for Motif |
Turns off the
|
|
(IDM for Qt only, |
Activates the
|
(IDM for Motif |
Determines if the user can detach the menubox from the menubar and freely position it. |
|
(IDM for Motif |
Does not use gadget, but always widget. |
|
(IDM for Windows |
Controls where the toolhelp is displayed:
|
|
(IDM for Windows |
Controls where the toolhelp is displayed:
|
|
|
(IDM for Motif only, |
Controls the behavior with focusing and may improve accessibility through keyboard navigation (see chapter “Motif Option .options[opt_scroll_on_focus]”).
|
(IDM for Windows |
Controls where the toolhelp is displayed:
|
|
|
(IDM for Windows only, |
Activates a horizontal scrollbar in the poptext list.
Note The horizontal scrollbar appears within the display area and thus covers the lowest lines. A vertical scrollbar is then also displayed for this purpose. Since the operation of scrollbars in an open list is not easy for the user, this option should only be used if there is no other solution. |
|
Defines if Mnemonics are processed.
|
|
|
Controls the triggering of select and activate events. |
|
|
(IDM for Motif |
Turns off the
Note
|
|
(IDM for Windows |
Determines if the list is sorted. The sorting only affects the display, the order in the attribute .text [integer] and the indexes of the entries remain unchanged.
|
(IDM for Windows |
Controls where the toolhelp is displayed:
|
|
(IDM for Windows |
Controls where the toolhelp is displayed:
|
|
|
(IDM for Motif |
Does not use gadget, but always widget. |
(IDM for Windows |
Controls where the toolhelp is displayed:
|
|
|
(IDM for Windows |
The Radiobutton looks like a Pushbutton. |
|
(IDM for Motif |
Does not use gadget, but always widget. |
(IDM for Windows |
Controls where the toolhelp is displayed:
|
|
(IDM for Windows |
Controls where the toolhelp is displayed:
|
|
(IDM for Windows only, |
Defines the appearance of the toolhelp:
|
|
|
If this option is set to false, monitor functions installed through YiRegisterUserEventMonitor() are not invoked. This is important for debugging, if there is a suspicion that a monitor function is implemented faultily. When monitor functions are disabled through the command line option or environment variable, they cannot be enabled by setting this option to true. |
|
opt_fontraster_compat |
This option can be used to specify that the old calculation of the raster size should be used. Attention: with version A.06.03.a the calculation of the raster size has changed. If no reference string is specified, M is used as reference string now. The option opt_fontraster_compat can be used to temporarily use the old calculation method. |
|
(IDM for Windows |
Controls where the toolhelp is displayed:
|
|
(IDM for Windows |
Controls where the toolhelp is displayed:
|
|
(IDM for Windows |
Controls where the toolhelp is displayed:
|
|
|
(IDM for Motif |
Does not use gadget, but always widget. |
(IDM for Windows |
Controls where the toolhelp is displayed:
|
|
|
(IDM for Motif and IDM for Windows) |
Defines, which attributes determine the alignment of text.
|
|
(IDM for Motif |
In older versions of the IDM for Motif (before A.03.10.f) for tables with .reffont defined, the column widths had been calculated incorrectly. For this there was a second patch in version A.03.10.f where the option opt_new_colwidth was introduced.
|
|
(IDM for Motif |
In older versions of the IDM for Motif (before A.03.04.a) for tables with .reffont defined the columns had been too wide. For this there was a first patch in version A.03.04.a where the option opt_old_colwidth was introduced.
Note In version A.03.10.f the column widths were corrected again and the option opt_new_colwidth had been introduced. If opt_new_colwidth is set to true, this setting takes precedence over opt_old_colwidth. |
|
(IDM for Motif only, |
With this option a selection- or action-oriented triggering of select events can be set. This enables consistent behavior of the Motif and Windows versions of the IDM.
|
|
(IDM for Motif only, |
Compatibility option to draw the tablefield again with a 1 pixel wide border. Since IDM version A.06.01.a the default width for the border is 0. This could also be achieved by setting .borderwidth = 1, but then a warning message would appear because .borderwidth will no longer be supported for the tablefield in the future. |
(IDM for Windows |
Controls where the toolhelp is displayed:
|
|
(IDM for Windows |
Controls where the toolhelp is displayed:
|
|
|
(IDM for Windows |
Determines if entries can be selected with the right mouse button:
|
|
(IDM for Motif only, |
Controls the behavior with focusing and may improve accessibility through keyboard navigation (see chapter “Motif Option .options[opt_scroll_on_focus]”).
Note A treeview with .options[opt_scroll_on_focus] = false may become unreachable by keyboard navigation when the active entry is outside the visible area. However it remains focusable by mouse click. |
(IDM for Qt |
Toggles animations when toolbars are moved interactively.
|
|
(IDM for Windows and IDM for Qt only, |
This option prevents the window from closing automatically when the user selects the command from the system menu or the Close button in the title bar.
|
|
|
(IDM for Windows |
Controls where the toolhelp is displayed:
|
|
(IDM for Windows |
When this option is set, the help button with the question mark is displayed in the titlebar. Note The help button is not shown when all three other buttons (minimize, maximize, close) are displayed. |
|
(IDM for Qt |
Enables
Notes
|
|
(IDM for Motif only, |
Controls the behavior with focusing and may improve accessibility through keyboard navigation (see chapter “Motif Option .options[opt_scroll_on_focus]”).
|
|
(IDM for Qt |
Enables
Notes
|
(IDM for Qt |
Determines how sizes are interpreted for the window.
|
Example
With Motif 1.1, you cannot navigate over an object with keyboard navigation, if this object is a composite widget
and if this widget has no children. A program abort is also likely. Therefore, the attribute .options has been made available.
Canvas1.options[opt_accept_child] := true;
See also
Obje
2.242.1 Motif Option .options[opt_scroll_on_focus]
Objects with virtual size (groupbox, layoutbox, notepage, window) and treeview have the option .options[opt_scroll_on_focus] since IDM version A.05.02.i. This option is used to define whether a child object is scrolled into the visible area when it gets focused.
Purpose of the Option
The option .options[opt_scroll_on_focus] primarily serves to improve the accessibility of objects via keyboard navigation and to enable that they are focused in certain constellations via keyboard or mouse click. This achieves a more consistent behavior between Motif and Windows applications.
However, the option – due to the differences between platforms in focus handling – cannot achieve full consistency, nor that objects can be focused by key command in all situations.
Relation Between Object Position, Visibility, Keyboard Navigation and Focusability on Motif
On Motif, only objects that are visible or that can be scrolled into the visible area may obtain focus. This is the typical behavior of Motif applications, unlike Microsoft Windows. Please note that a child object may be fully visible in a grouping object, but is still not accessible and reachable via keyboard, as the grouping object is not fully visible.
For compatibility reasons between the platforms, the ISA Dialog Manager also enables the positioning of child objects with negative positions for the x and y coordinates of the left upper corner in the non-visible areas on Motif. Motif does not actually allow this, so that the IDM must bypass check mechanisms. Consequentially, this usually rules out that the objects are reachable via keyboard navigation and that they can be focused.
Recommendations
- The best way to ensure the accessibility of objects via keyboard navigation and their ability to be focused with keyboard and mouse is to always position them fully in the visible area and to avoid negative values for their x and y coordinates.
- If this is not possible, you can attempt to improve key navigation and focusability with the help of .options[opt_scroll_on_focus].
2.242.2 Options for Grouping Objects under Windows
Attention
The options opt_wntsizebug_compat and opt_w2kprefsize_compat are deprecated. Since IDM version A.06.01.a they are not evaluated anymore.
It is strongly recommended to adapt dialogs that still rely on these options. Only if adaptation is not feasible, the command line option ‑IDMborder5_compat or the environment variable IDM_BORDER5_COMPAT may be used to bring back evaluation of opt_wntsizebug_compat and opt_w2kprefsize_compat (with the downside of losing support for the .borderstyle attribute).
With the change to Visual Styles
on Windows XP and higher, several bugs in size calculation (causing a different behavior) were fixed. These bugs had existed since 3D objects had been supported on Windows.
Especially in dialogs which require pixel-perfect representation these problems had major impacts. Therefore the version of the IDM for Windows XP and higher have been made error compatible
. For all grouping objects (groupbox, layoutbox, notebook, notepage, spinbox, splitbox, statusbar, toolbar and window) two additional options have been introduced:
.options[opt_wntsizebug_compat]
Default value: false
With the value false positions and sizes of all direct child objects are set in a correct manner. With the value true positions and sizes of all direct child objects are set in an error compatible mode. Since Windows versions dating back a long time there had been an error calculating positions and sizes of the objects edittext, groupbox, listbox, poptext and treeview. This error resulted in these objects being one pixel smaller than desired on each side.
This option is preset to the value false.
.options[opt_w2kprefsize_compat]
Default value: false
With the value true the preferred sizes of all direct child objects are calculated as if the application is running on Windows 2000. With the value false the preferred sizes of all direct child objects are calculated according to the Visual Styles
in the Windows XP and higher versions of the IDM.
This option is preset to the value false. Therefore objects with no dimensions set appear in optimal dimensions with active Visual Styles
.
If the appearance of a dialog is broken, this option can be turned on for the Default objects. Afterward the dialog can be adjusted successively.
2.242.3 Options for raster calculation under Windows
With IDM version A.06.03.a, the calculation of the raster width has been substantially changed. If no reference string is set, the raster width is now calculated from an internal reference string (M
) to avoid excessive width growth due to excessively wide letters within a font.
For compatibility reasons, however, the opt_fontraster_compat option, the -IDMfontraster_compat startup option, or the IDM_FONTRASTER_COMPAT environment variable can temporarily reactivate the old raster width calculation (with the drawback that excessive width growth may occur again).
When using the opt_fontraster_compat, the size calculation is partly based on the system font, which is not High DPI capable, so High DPI capable applications created with IDM for Windows 11 should not use this option.