rvico TRichView Reference | TRichView


Top  Previous  Next

Occurs when user double-clicks the primary mouse button when the mouse pointer is above the item in RichView (or on single left-click, if rvsSingleClick is in Options)


  TRVDblClickEvent =

    procedure(Sender: TCustomRichView; ClickedWord: TRVRawByteString;

      Style: Integer) of object;


property OnRVDblClick:TRVDblClickEvent;


Style – style (type) of the clicked item.

If Style<0 then the clicked item is not a text item, and Style is a type of this item (see Item Types). In this case ClickedWord contains a name of this item, ANSI string.

If Style>=0, then this is a text item, and Style is an index in the collection of text styles (RichView.Style.TextStyles). In this case ClickedWord is a word below the mouse pointer. "Word" is defined as a part of string between delimiters. Delimiters are listed in Delimiters property. For Unicode text items, ClickedWord contains "raw Unicode". For non-Unicode text items, ClickedWord contains ANSI string.

This event is not generated when the user clicks not on item (on background)


See also events:


See also properties:




TRichView © trichview.com