rvico TRichView Reference | TRichView


Top  Previous  Next

Returns the item having keyboard focus.

procedure GetFocusedItem(out ARVData: TCustomRVFormattedData;

  out AItemNo: Integer);

There are two types of items which can have keyboard focus:

hypertext (text or pictures)

inserted controls.

If hypertext item has focus, pressing  Enter  invokes OnJump event for the focused link.

This method returns the focused item (the AItemNo-th item of ARVData object).

ARVData can be TRichView.RVData or table cell.

This method must be called only when the document is formatted.

If ARVData=nil, there is no focused item.

Focused items are supported only in TRichView, not in TRichViewEdit.


See also:

TabNavigation property.

TRichView © trichview.com