trichview.com

trichview.support




Re: A few questions


Return to index


Author

Message

Gennady

Posted: 11/19/2003 11:54:18


"John" <[email protected]> wrote:


>I want to get the itemNo of the specific item under the cursor.


TCustomRichView.OnRVMouseMove -

Occurs when mouse pointer moves to area of hypertext jump.


You must use OnMouseMove event.


procedure TForm1.RVEMouseMove(Sender: TObject; Shift: TShiftState; X, Y:

Integer);

var rvd: TCustomRVFormattedData;

    i, io, StyleNo: integer;

    

begin

  if RVE.GetItemAt(x+(RVE.HScrollPos*10), y+(RVE.VScrollPos*10), rvd, i,

io, true) then

  begin

    StyleNo:=RVE.GetItemStyle(i);

    // your code

  end;

end;


Look at TCustomRichView.GetItemAt in help file for detailed information.



>2.Is it possible to click on a picture(not bullet and others)

>and get it to shellexecute? How do I do this? I suppose I need to add a

hotspot

>to the picture. How can I achieve this?


ShellExecute - what does it mean?





Powered by ABC Amber Outlook Express Converter