How to set title property for hyperlinks

General TRichView support forum. Please post your questions here
Post Reply
delphix
Posts: 9
Joined: Sun Aug 03, 2008 4:20 pm

How to set title property for hyperlinks

Post by delphix »

Hi all
i do not know how to add title property in hyperlinks

any help :(
Sergey Tkachenko
Site Admin
Posts: 17534
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Do you mean a popup hint?
See the help file on TRVExtraItemStrProperty, rvespHint.
It can be set for any item, not only for links.
delphix
Posts: 9
Joined: Sun Aug 03, 2008 4:20 pm

Post by delphix »

hi
i try this code but no thing happened

Code: Select all

Rve.InsertStringTag('New link', Integer(StrNew(PChar('www.google.com'))));
Rve.SetCurrentItemExtraStrProperty(rvespHint,'Hinttttttttttt',False);


and this is the event of richview

Code: Select all

procedure TNewArticle.RveWriteHyperlink(Sender: TCustomRichView;
  id: Integer; RVData: TCustomRVData; ItemNo: Integer;
  SaveFormat: TRVSaveFormat; var Target, Extras: String);
Var
  url , title : String;
Begin

  RVData.GetItemExtraStrProperty(ItemNo,rvespHint,title);
  showmessage( title );
  url := PChar(RVData.GetItemTag(ItemNo));
  Target := url;

End;

the message showmessage( title ); is empty
if you can clear by code it will be very good
thanks
Sergey Tkachenko
Site Admin
Posts: 17534
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Include rvoShowItemHints in Rve.Options.
Set Rve.ShowHint = True.
delphix
Posts: 9
Joined: Sun Aug 03, 2008 4:20 pm

Post by delphix »

I will try it thanks
Post Reply