Page 1 of 1

How to set title property for hyperlinks

Posted: Wed Nov 05, 2008 8:27 am
by delphix
Hi all
i do not know how to add title property in hyperlinks

any help :(

Posted: Wed Nov 05, 2008 4:35 pm
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.

Posted: Thu Nov 06, 2008 7:58 am
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

Posted: Fri Nov 07, 2008 4:17 pm
by Sergey Tkachenko
Include rvoShowItemHints in Rve.Options.
Set Rve.ShowHint = True.

Posted: Tue Nov 11, 2008 1:26 pm
by delphix
I will try it thanks