Skip to main content

TdxGalleryControlOptionsBehavior.SelectOnRightClick Property

Specifies if right-clicking a gallery item modifies the current selection.

Declaration

property SelectOnRightClick: Boolean read; write; default False;

Property Value

Type Default
Boolean False

Remarks

Set this property to True to allow end-users to change the current selection by right-clicking gallery items. Otherwise, right-clicks are ignored.

The following table shows how right-clicks modify the selection based on the ItemCheckMode and ItemMultiSelectKind property values.

ItemCheckMode Property Value Description
icmMultiple Right-clicking the currently selected item does not deselect it. If the ItemMultiSelectKind property is set to imskListView, right-clicking an item that is currently not selected clears the selection and selects this item. Right-clicking a group caption or any area that is free from items clears the selection. If the ItemMultiSelectKind property is set to imskGallery, right-clicking an item that is currently not selected adds it to the selection.
icmSingleCheck or icmSingleRadio Right-clicking an item selects it and deselects the previously selected item.
icmNone Right-clicks do nothing due to disabled item selection.

Right-clicks combined with the Shift or Ctrl key do not change the selection.

The default value of the SelectOnRightClick property is False.

See Also