[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 874

type THintWindow = class(TCustomForm) end;

protected

  class procedure WSRegisterClass; override;

  

Registers this component class with the current WidgetSet.

  procedure WMNCHitTest(); message;

  

Treats the whole window as transparent.

  procedure ActivateSub;

  procedure DoShowWindow; override;

  

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

  procedure UpdateRegion;

  

  procedure SetColor(); override;

  function UseBGThemes;

  function UseFGThemes;

  class function SysHintFont;

public

  destructor Destroy();

  constructor Create(); override;

  procedure ActivateHint();

  

Shows the hint.

  procedure ActivateWithBounds();

  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.

  function OffsetHintRect();

  procedure InitializeWnd; override;

  function IsHintMsg(); virtual;

  procedure ReleaseHandle;

  

Destroys the widget.

  procedure Paint; override;

  

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

  procedure SetBounds(); override;

  class function GetControlClassDefaultSize; override;

  

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

  property OnMouseDown: TMouseEvent;

  property OnMouseUp: TMouseEvent;

  property OnMouseMove: TMouseMoveEvent;

  property OnMouseLeave: TNotifyEvent;

  property Alignment: TAlignment; [rw]

  

The intended text alignment.

  property HintRect: TRect; [rw]

  property HintRectAdjust: TRect; [rw]

  property HintData: Pointer; [rw]

  property AutoHide: Boolean; [rw]

  

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

  property BiDiMode: TBiDiMode;

  

Customization (of text controls) in bidirectional reading environments.

  property HideInterval: Integer; [rw]

  

The time after which the displayed hint disappears.

Inheritance

THintWindow

  

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

|

TCustomForm

  

The base type for TForm.

|

TCustomDesignControl

|

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

?

TObject

Description

Usage:

HintWindow := THintWindow.Create(nil);
   Rect := HintWindow.CalcHintRect(0,'This is the hint',nil);
   HintWindow.ActivateHint(Rect,'This is the hint');
The latest version of this document can be found at lazarus-ccr.sourceforge.net.