TMtxDialog Class

Header: Dew.Math.Controls.VCL/MtxDialogs.h · C++Builder only
tObjectTMtxComponentTMtxDialog

class TMtxDialog : public TMtxComponent;

Abstract class for component editors.

Derive classes from this component to create component specific dialogs. The new class should override InternalExecute method which provides a way to update the dialog with the property values of the edited component and redeclare the Source property to reflect the new type of the component for which to display the dialog. The dialog (TForm) class type will be determined by calling the TMtxComponent.EditorClass function. The displayed dialog should write new values directly to the edited component. The cancel feature can be implemented by creating a copy of the edited component while the dialog is being updated by the InternalExecute method. Pointer to the edited component is being passed via the TForm.Tag property.

Constructors

NameDescription
TMtxDialogCreate the component.

Destructors

NameDescription
~TMtxDialogDestroy the component.

Properties

NameTypeDescription
BlockAssignboolBlock streaming of specific properties when storing only a "template".
DockingboolIf True, the user will be able to dock the component editor.
EditorActiveboolReturns True, if the component editor is displayed.
EditorFormTForm*
FormCaptionSystem::UnicodeStringDefines the Caption on the form.
NameDewString
OnBeforeUpdateTNotifyEventThe event is called just before the edit controls on the dialog box get updated.
ReferenceTReferenceList*Stores a list of components that have to be notified, when this component is destroyed.
RegistryPathSystem::UnicodeStringDefines the registry path to which the settings of TMtxFloatEdit components residing on the displayed dialog will stored.
ShowLiveboolIndicate that all updates made to the properties on the dialog will trigger recalculation of the component.
SourceTMtxComponent*The component for which a component editor should be displayed.
StayOnTopboolIf True, the dialog will "stay on top".
StoreInRegistryboolSet this property to True, to store the values of TMtxFloatEdit components residing on the dialog to registry.

Methods

NameDescription
AllowStreamingReturns the negatated value of BlockAssign.
AssignAssign values of all published properties from Source.
AssignTemplateAssign values of "template-like" published properties from Source.
CurrentSourceReturns the current component to be edited.
EditorClassTo be overriden in descendanr classses.
Execute (3)Call execute to show the component editor.
ExecuteModal
GetDocking
GetEditorForm
GetFormCaption
GetOnBeforeUpdate
GetRegistryPath
GetShowLive
GetStayOnTop
GetStoreInRegistry
InternalExecuteOverride internalExecute to update the component editor (dialog) with property values of the component connected to Source.
LoadFromStreamLoad the component from Src stream.
LoadTemplateFromFileLoad a template from file.
LoadTemplateFromStreamLoad a template from stream.
OnEditorFormDestroy
ReferenceRemoved
ResetReset is called after loading the data from stream or file.
SaveTemplateToFileSave template to file.
SaveTemplateToStreamSave template to stream.
SaveToStreamSave the component to Dst stream.

Fields

NameTypeDescription
FSourceTMtxComponent *
Tagintptr_t