|Top Previous Next|
Selects the given visual control in the document.
function SelectControl(actrl: TControl): Boolean;
(introduced in version 1.8)
The method selects the item containing the control actrl.
This method repaints document.
The method generates OnSelect event.
In TRichViewEdit, if this control's item is resizable (see rvepResizable extra-property) and resizing with mouse is not forbidden (see rvoNoImageResize in EditorOptions), resizing handles appear. A good idea to call this method in OnClick event of resizable controls.
This method must be called only when the document is formatted.
Return value: True if this control was found and selected.
See also methods:
TRichView © trichview.com