Contents - Index - Next


TProfDHTMLEdit2 component

Properties Methods Events



Hierarchy

TObject
  |
TPersistent
  |
TComponent
  |
TControl
  |
TWinControl
  |
TProfOleControl
  |
TCustomProfDHTMLEdit
  |
TProfDHTMLEdit2


Return values of methods

Most of the methods of the component return a Boolean value. In this case, the return value of True indicates "success", and the return value of False indicates "failure". It is recommended to check the return values of methods, thus catching possible problems in applications.


"Can..." methods

Most methods and properties of the component have an accompanying "Can..." method that returns a Boolean value. You may call these helper methods before calling an actual method or setting a property in order to determine whether a specific command is supported for the current state of the control. The "Can..." methods are frequently called in a handler for the OnDisplayChanged event to test whether you should enable or disable user interface elements such as menu items and toolbar buttons. The "Can..." method names are symmetrical to the names of methods and properties of the component. For example, the "Can..." method for the Undo method is CanUndo, and the "Can..." method for the Source property setter is CanSetSource. The "Can..." methods are not included in the help system to save space.


OnCreate event

The component has its own OnCreate event, which must be used if you need to perform some initialization of the control from an application at run time. To initialize the control from an application at run time, never use the events that occur when a form is being created (TCustomForm.OnCreate, OnShow, OnActivate) or any similar events of any VCL controls placed on the form. Instead, always use the OnCreate event of the TProfDHTMLEdit2 component.