Description | Hierarchy | Fields | Methods | Properties |
type TAdHint = class(TObject)
TAdHint is used by the gui system to show a smal hint window when pointing on a specific GUI control. To change (e.g.) the color of the hints in the whole GUI environment, simply use TAdGUI.HintWnd for this purpose. This is also the place where you can replace the hint window with your own, extended TAdHint class.
![]() |
constructor Create(AParent:TAdDraw); |
![]() |
destructor Destroy; override; |
![]() |
procedure Show(MouseX, MouseY:integer; Text:string; Sender:TAdComponent); virtual; |
![]() |
procedure Hide; virtual; |
![]() |
procedure Draw; virtual; |
![]() |
procedure Move(TimeGap:double); virtual; |
![]() |
property ShowTime: single read FShowTime write FShowTime; |
![]() |
property WaitTime: single read FWaitTime write FWaitTime; |
![]() |
property Color: longint read FColor write FColor; |
![]() |
property Alpha: byte read FAlpha write SetAlpha; |
![]() |
property Parent: TAdDraw read FParent; |
![]() |
property Visible: boolean read FVisible write FVisible; |
![]() |
property FadeTime: single read FFadeTime write FFadeTime; |
![]() |
property BorderColor: longint read FBordercolor write FBorderColor; |
![]() |
property TextColor: longint read FTextColor write FTextColor; |
![]() |
constructor Create(AParent:TAdDraw); |
Creates an instance of TAdHint. |
![]() |
destructor Destroy; override; |
Destroys the instance of TAdHint. |
![]() |
procedure Show(MouseX, MouseY:integer; Text:string; Sender:TAdComponent); virtual; |
Shows the hint on a specific position. The hint window will automatically hide after "ShowTime" has expired. Normally this method is called by the underlying component. |
![]() |
procedure Hide; virtual; |
Hides the hint before its "ShowTime" has expired. |
![]() |
procedure Draw; virtual; |
Draws the hint, if it is visible. |
![]() |
procedure Move(TimeGap:double); virtual; |
Moves the hint timers forward, so that it can hide. |
![]() |
property ShowTime: single read FShowTime write FShowTime; |
The time in seconds the hint window should be shown after it had been activated. |
![]() |
property WaitTime: single read FWaitTime write FWaitTime; |
The time the underlying component shall wait before showing the hint window. |
![]() |
property Color: longint read FColor write FColor; |
The background color of the hint. |
![]() |
property Alpha: byte read FAlpha write SetAlpha; |
The alpha value of the background color. |
![]() |
property Parent: TAdDraw read FParent; |
The parent TAdDraw that was passed by creating the hint window. |
![]() |
property Visible: boolean read FVisible write FVisible; |
Returns whether the hint window is currently visible. |
![]() |
property FadeTime: single read FFadeTime write FFadeTime; |
Set this property to adjust the time the hint needs to fade in/out. |
![]() |
property BorderColor: longint read FBordercolor write FBorderColor; |
The color of the hint window border. |
![]() |
property TextColor: longint read FTextColor write FTextColor; |
The color of the hint text. |