<< Click to display table of contents >> TrvActionCustomColor.UserInterface |
Defines the way how the user chooses a color.
type
TrvaColorInterface =
(rvacNone, rvacColorDialog, rvacAdvanced);
property UserInterface: TrvaColorInterface;
Value |
Meaning |
rvacNone |
Color is not chosen by the user. When the action is executed, values specified in Color and Opacity* properties are applied. |
rvacColorDialog |
Color is chosen using TColorDialog (or GetControlPanel.ColorDialogInterface). Values of Color and Opacity* properties before the execution is ignored (they are taken from the target editor). When the color and opacity are chosen, they are assigned to Color and Opacity* properties. Note: TColorDialog cannot edit opacity. It can be edited only if GetControlPanel.ColorDialogInterface supports it. |
rvacAdvanced |
Color is chosen using a special popup color-picker window. Values of Color and Opacity* properties before the execution is ignored (they are taken from the target editor). When the color and opacity are chosen, they are assigned to Color and Opacity* properties. |
* only for actions that use opacity.
This action uses GetControlPanel.ColorDialog, if assigned. Otherwise it creates a temporal color dialog.
In rvacAdvanced mode, GetControlPanel.OnGetActionControlCoords may be used to position a color-picker window.
Default value:
rvacAdvanced