[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Forms' (#lcl)

THintWindow

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

The popup box containing helpful information that appears when the mouse pointer hovers over an object.

Declaration

Source position: forms.pp line 841

type THintWindow = class(TCustomForm)

  class procedure WSRegisterClass; override;

  

Registers this component class with the current WidgetSet.

protected

  procedure WMNCHitTest(); message;

  

Treats the whole window as transparent.

  procedure DoShowWindow; override;

  

When no control is Active, sets the Focus to the first control in TabOrder.

  procedure UpdateRegion;

  

public

  constructor Create(); override;

  destructor Destroy; override;

  procedure ActivateHint(); virtual;

  

Shows the hint.

  procedure ActivateHintData(); virtual;

  

Extended version of ActivateHint. Override this method to make use of the additional data.

  function CalcHintRect(); virtual;

  

Determines the rectangle required for the hint display, based on the maximum text/window width.

  procedure InitializeWnd; override;

  procedure ReleaseHandle;

  

Destroys the widget.

  procedure Paint; override;

  

Override this method in your derived class with your own paint handler.

  procedure SetBounds(); override;

public

  class function GetControlClassDefaultSize; override;

  

Returns the default size for this class of controls (when added to a form).

public

  property Alignment: TAlignment; [rw]

  

The intended text alignment.

  property AutoHide: Boolean; [rw]

  

Does the hint disappear (get hidden) after a while?

  property BiDiMode;

  

Customization (of text controls) in bidirectional reading environments.

  property HideInterval: Integer; [rw]

  

The time after which the displayed hint disappears.

end;

Inheritance

THintWindow

  

The popup box containing helpful information that appears when the mouse pointer hovers over an object.

|

TCustomForm

  

The base type for TForm.

|

TScrollingWinControl

  

Class of a windowed control with incorporated scroll bars.

|

TCustomControl

  

The base class for windowed controls which paint themselves.

|

TWinControl

  

The base class for controls which can contain other (child) controls.

|

TControl

  

The base class for visible controls.

|

TLCLComponent

  

The base class for LCL components associated with widgets.

|

TComponent,IUnknown,IInterfaceComponentReference

|

TPersistent

|

TObject

Description

Usage:

HintWindow := THintWindow.Create(nil);
   Rect := HintWindow.CalcHintRect(0,'This is the hint',nil);
   HintWindow.ActivateHint(Rect,'This is the hint');
This page is hosted on Get Lazarus Code and Component Repository at SourceForge.net. Fast, secure and Free Open Source software downloads