trichview.com

trichview.support




Re: RichView


Return to index


Author

Message

Sergey Tkachenko

Posted: 03/12/2002 16:41:42


You can get information about item at the specified coordinates:


var RVData: TCustomRVFormattedData;

    ItemNo, Offs: Integer;


  inc(X, rv.HScrollPos);

  inc(Y, rv.VScrollPos*rv.VSmallStep);

  rv.RVData.GetItemAtEx(X,Y,RVData,ItemNo,Offs);

  if ItemNo<0 then

    exit;

  // item is the ItemNo-th item in RVData.


Where (X,Y) - client coordinates, for example coordinates passed in

OnRVMouseUp.


> Hi Sergey,

> It looks easy with RichViewEdit but cannot I get the number of a clicked

> item in a table in RichView? Any help?

>

> Thanks in advance.

>

> Henry.

>

>





Powered by ABC Amber Outlook Express Converter