[Overview][Classes][Index] Reference for unit 'fpg_hyperlink' (#fpgui)

TfpgHyperlink

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

A TfpgCustomLabel descendant that implements hyperlink support

Declaration

Source position: fpg_hyperlink.pas line 35

type TfpgHyperlink = class(TfpgCustomLabel)

protected

  procedure HandleMouseEnter; override;

  procedure HandleMouseExit; override;

  procedure HandleLMouseDown(); override;

  

This overriden procedure intercepts left mouse keydown, call its inherited method and run GoHyperLink method to jump hyperlink.

public

  constructor Create(); override;

  procedure GoHyperLink;

  

Jump to hyperlink.

published

  property Align;

  property Alignment;

  property Autosize;

  

Its default is True, so the hyperlink width is automatically determined.

  property FontDesc;

  

Standard font for this component is Arial-8:antialias=true:underline

  property Height;

  property Hint;

  property HotTrackColor: TfpgColor; [rw]

  

Same as HotTrackFont but for TextColor property when the mouse is over the hyperlink.

  property HotTrackFont: TfpgString; [rw]

  

This property is the type of font when mouse is over the hyperlink

  property Left;

  property Text;

  

Text description for the hyperlink.

  property TextColor;

  

Color of Text property.

  property ShowHint;

  property URL: TfpgString; [rw]

  

String type property that contains the hyperlink target.

  property Top;

  property Width;

  property WrapText;

  property OnClick;

  property OnShowHint;

end;

Inheritance

TfpgHyperlink

  

A TfpgCustomLabel descendant that implements hyperlink support

|

TfpgCustomLabel

?

TObject

Description

This is a class to implement a hyperlink. Of course, such as all the other fpGUI components it is cross platform (Windows, Linux) but its behaviour can be different because of the the way the browser is called. Under Windows the ShellExecute Windows API is used, so you can have any web compliant URL as the hyperlink target. For example, the typical http:// hyperlink but also a mailto: link will work. Under Linux you can only use the typical http:// hyperlink.


Documentation generated on: 2012-01-26