|
Top Previous Next |
|
TrvActionBackground is the action for "Background" command. Unit RichViewActions; Syntax TrvActionBackground = class(TrvAction) Hierarchy TObject TPersistent TComponent TBasicAction TContainedAction TCustomAction TAction Description This action changes background (Color, BackgroundBitmap, BackgroundStyle) and "padding" (LeftMargin, TopMargin, RightMargin, BottomMargin) properties of TCustomRichViewEdit controls. "Padding" can be changed only if CanChangeMargins=True. These changes are not editing operations and so they cannot be undone. However, if rvfoSaveBack and/or rvfoSaveLayout are included in TCustomRichViewEdit.RVFOptions property, the action calls TCustomRichViewEdit.Change, so its Modified property becomes True. The action calls the following events: •TCustomRichViewEdit.OnChange (called by TCustomRichViewEdit.Change, see above) •TRVAControlPanel.OnMarginsChanged (only if the action changed values of LeftMargin, TopMargin, RightMargin, BottomMargin properties of TCustomRichViewEdit) |