digao-dalpiaz / DzHTMLText

Delphi and Lazarus HTML Label component
MIT License
194 stars 53 forks source link

Link-relative events more powerful suggestion? #4

Closed LivingInFHL closed 5 years ago

LivingInFHL commented 5 years ago

Would you please add display-support for links in DzHTMLText ?

  THTEvLink = procedure(Sender: TObject; LinkID: Integer; Target: String; Display: String)
    of object;
  THTEvLinkClick = procedure(Sender: TObject; LinkID: Integer; Target: String;  Display: String;
    var Handled: Boolean) of object;

Open Google Search Open Baidu Search

Sometimes I want to get 'Open Google Search' or 'Open Baidu Search' in OnLinkClick Event. By the parameter of 'Display: string'.

Sometimes I want to get LinkId, Target , and also Display. To do some wonderful jobs. That wil make TDzHTMLText more powerful.

Thank you very much. Great job.

LivingInFHL commented 5 years ago

Enhancement. Good.

digao-dalpiaz commented 5 years ago

Done!

Please read the documentation changes. Thanks for the suggestion.