trichview.support
Re: Hotspot's |
Author |
Message |
Sergey Tkachenko |
Posted: 11/11/2002 15:47:37 Use this code in OnRVMouseUp: var ItemNo, OffsetInItem, StyleNo: Integer; RVData: TCustomRVFormattedData; OldHint,NewHint: String; begin // converting client coords to doc coords: inc(X, RichViewEdit1.HScrollPos); inc(Y, RichViewEdit1.VScrollPos*RichViewEdit1.VSmallStep); // what is at this position? : RichViewEdit1.RVData.GetItemAtEx(X,Y,RVData,ItemNo, OffsetInItem, True); if ItemNo=-1 then begin // no item here exit; end; // clicked the ItemNo-th item of RVData // example of using: RVData.GetItemStyle(ItemNo); This is a code for the latest version, available for registered users. In older versions, GetItemAtEx does not have the last parameter (and has some inaccuracy when clicking in tables with large cell padding) > > >Since version 1.6, hypertext in read-only mode works automatically (user > does > >not need to press and hold Ctrl key). > > > >Hope it helps. > > Yep, exactly - but only in read-only-mode and that the problem. I'd like > to get this behaviour for edit-mode. > > I'm currently trying to implement it user the events but now the problem > is, that I need to get the at specific coordinates. So I'm looking for a > methode like GetItemAtXY(). > > Does anybody know such a function? > > regards, > Marc > |
Powered by ABC Amber Outlook Express Converter