rvacontrolpanel TRVAControlPanel

Properties   Methods   Events

<< Click to display table of contents >>

rvacontrolpanel TRVAControlPanel

Properties   Methods   Events

TRVAControlPanel is the component allowing to change settings for RichViewActions

Unit RichViewActions;

Syntax

TRVAControlPanel = class(TComponent)

hmtoggle_arrow1Hierarchy

Description

This component contains properties affecting many RichViewActions.

Main control panel

If an application does not contain TRVAControlPanel on a form, a default control panel is used (accessible as MainRVAControlPanel). If an application contains a single TRVControlPanel on a form, it becomes the main control panel automatically (assigned to MainRVAControlPanel). Another control panel can be made a main one if you call its Activate method.

Linking

All actions and many components in RichViewActions have links to a control panel, including:

TrvCustomAction.ControlPanel

TRVStyleTemplateCombo/ListBox.ControlPanel

If this link is not assigned (nil), the action/component uses the main control panel (see above).

Properties

The component has the following group of properties:

links to components providing additional functionality:

oColorDialog and ColorDialogInterface

oDownloadInterface

oSpellInterface

oRVPrint

oXMLComponent

properties for customizing user interface:

oLanguage

oAddColorNameToHints

oUserInterface

oUseXPThemes

properties for dialog windows:

oDialogFontName

oDialogFontSize

oDialogPosition

oDialogZoomPercent

properties related to end-user help files

oUseHelpFiles

oUseDefaultHelpFile

oHelpType

properties of new documents:

oDefaultColor

oDefaultCustomFilterIndex

oDefaultExt

oDefaultFileFormat

oDefaultFileName

oDefaultMargin

oDefaultDocParameters

properties controlling all actions:

oDefaultControl

oActionsEnabled

properties for changing names of file formats:

oRVFFilter

oRVFLocalizable

oRVFormatTitle

oRVStylesFilter

oRVStylesExt

oXMLFilter

oXMLLocalizable

other properties:

oAutoDeleteUnusedStyles

oFirstPageNumber

oSearchScope

oShowSoftPageBreaks

oUseTextCodePageDialog

oMetafileCompatibility

Events

If you use TRVRuler, process OnMarginsChanged.

If you want to implement opening, saving, exporting and inserting files in additional formats, use OnCustomFileOperation.

If you want to implement your own dialog for opening pictures, use OnChoosePicture event.