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

TForm

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

Declaration

Source position: forms.pp line 739

type TForm = class(TCustomForm) end;

protected

  procedure CreateWnd; override;

  

Creates the interface object (widget) and assigns it to Handle.

  procedure Loaded; override;

  

Also renews ActiveControl and Visible.

public

  constructor Create(); override;

  procedure Cascade;

  

Arranges MDI child forms so they overlap.

  procedure Next;

  

Activates the next child MDI form (fsMDIChild) in the form sequence.

  procedure Previous;

  

Activates the previous MDI child form in the form sequence.

  procedure Tile;

  

Arranges MDI child forms side by side.

  property ClientHandle: HWND;

  property DockManager: TDockManager;

  

The docking layout manager for this control.

published

  property Action: TBasicAction;

  

The Action associated with this control.

  property ActiveControl: TWinControl;

  property Align: TAlign;

  

Specifies the placement of the control inside its Parent.

  property AllowDropFiles: Boolean;

  property AlphaBlend: Boolean;

  property AlphaBlendValue: Byte;

  property Anchors: TAnchors;

  

The set of anchor definitions for this control.

  property AutoScroll: Boolean;

  property AutoSize: Boolean;

  

Allows to automatically adjust the size of the control, according to its content.

  property BiDiMode: TBiDiMode;

  

Customization (of text controls) in bidirectional reading environments.

  property BorderIcons: TBorderIcons;

  property BorderStyle: TFormBorderStyle;

  property BorderWidth: TBorderWidth;

  

Width of the Border around the control; default is zero.

  property Caption: TCaption;

  

The text describing the control to the user.

  property ChildSizing: TControlChildSizing;

  

Parameters for child control arrangement and spacing.

  property ClientHeight: Integer;

  

The height of the client area of the control.

  property ClientWidth: Integer;

  

The width of the client area of the control.

  property Color: TColor;

  

The background color of the control.

  property Constraints: TSizeConstraints;

  

The minimal and maximal Width and Height of this control.

  property DefaultMonitor: TDefaultMonitor;

  property DesignTimePPI: Integer;

  property DockSite: Boolean;

  

Allows to drag-dock other controls into this control.

  property DragKind: TDragKind;

  

The operation when the control is dragged - Drag or Dock.

  property DragMode: TDragMode;

  

Allows the user to drag the control.

  property Enabled: Boolean;

  

Determines whether the control reacts on mouse or keyboard input.

  property Font: TFont;

  

The font to be used for text display in this control.

  property FormStyle: TFormStyle;

  property HelpFile: string;

  property Icon: TIcon;

  property KeyPreview: Boolean;

  property Menu: TMainMenu;

  property OnActivate: TNotifyEvent;

  property OnChangeBounds: TNotifyEvent;

  

Event handler for a change of the Bounds of the control.

  property OnClick: TNotifyEvent;

  

Notification handler for mouse clicks.

  property OnClose: TCloseEvent;

  property OnCloseQuery: TCloseQueryEvent;

  property OnConstrainedResize: TConstrainedResizeEvent;

  property OnContextPopup: TContextPopupEvent;

  property OnCreate: TNotifyEvent;

  property OnDblClick: TNotifyEvent;

  

Event Handler for double mouse clicks.

  property OnDeactivate: TNotifyEvent;

  property OnDestroy: TNotifyEvent;

  property OnDockDrop: TDockDropEvent;

  

Notification handler for the drop of a control to be docked.

  property OnDockOver: TDockOverEvent;

  

Event handler for moves of a control over this docksite. Determines acceptance or rejection of an possible drop.

  property OnDragDrop: TDragDropEvent;

  

This handler determines the action on an drop onto this control, in a drag-drop operation.

  property OnDragOver: TDragOverEvent;

  

Event handler for a control being dragged over this control.

  property OnDropFiles: TDropFilesEvent;

  property OnEndDock: TEndDragEvent;

  

Notification handler for the end of a docking operation.

  property OnGetSiteInfo: TGetSiteInfoEvent;

  

Provides information about the DockSite.

  property OnHelp: THelpEvent;

  property OnHide: TNotifyEvent;

  property OnKeyDown: TKeyEvent;

  

Handler for keyboard key pressed.

  property OnKeyPress: TKeyPressEvent;

  

Handler for a character entered by the user.

  property OnKeyUp: TKeyEvent;

  

Handler for keyboard key released.

  property OnMouseDown: TMouseEvent;

  

Event handler for mouse button going down.

  property OnMouseEnter: TNotifyEvent;

  

Event handler for mouse entering the area of the control.

  property OnMouseLeave: TNotifyEvent;

  

Event handler for mouse leaving the area of the control.

  property OnMouseMove: TMouseMoveEvent;

  

Event handler for mouse movement within the control.

  property OnMouseUp: TMouseEvent;

  

Event handler for mouse button going up.

  property OnMouseWheel: TMouseWheelEvent;

  

Event handler for mouse wheel turned.

  property OnMouseWheelDown: TMouseWheelUpDownEvent;

  

Notification handler for downward movement of mouse wheel.

  property OnMouseWheelUp: TMouseWheelUpDownEvent;

  

Notification handler for upward movement of mouse wheel.

  property OnPaint: TNotifyEvent;

  

Supply your own OnPaint handler for painting the control.

  property OnResize: TNotifyEvent;

  

Notification handler for a resize of the control.

  property OnShortCut: TShortCutEvent;

  property OnShow: TNotifyEvent;

  property OnShowHint: TControlShowHintEvent;

  

Event Handler when a hint shall be shown.

  property OnStartDock: TStartDockEvent;

  

Event handler for the start of a docking operation.

  property OnUnDock: TUnDockEvent;

  

Event handler for control being undocked from this DockSite.

  property OnUTF8KeyPress: TUTF8KeyPressEvent;

  

Handler for a character entered by the user.

  property OnWindowStateChange: TNotifyEvent;

  property ParentBiDiMode: Boolean;

  

Allows to use the BiDiMode settings of Parent. Default is true.

  property ParentFont: Boolean;

  

If true, the Font of the control will be the same as the one from the Parent. Default is true.

  property PixelsPerInch: Integer;

  property PopupMenu: TPopupMenu;

  

A context-sensitive menu that pops up when the right mouse button is clicked over this control

  property PopupMode: TPopupMode;

  property PopupParent: TCustomForm;

  property Position: TPosition;

  property SessionProperties: string;

  

The stored (saved) properties of the current session, expressed as a string

  property ShowHint: Boolean;

  

Enables the Hint display.

  property ShowInTaskBar: TShowInTaskbar;

  property UseDockManager: Boolean;

  

Determines whether a DockManager is used for this DockSite.

  property LCLVersion: string; [rws]

  

The version of the LCL as string. Used to distinguish form streams of different versions.

  property Scaled: Boolean;

  property Visible: Boolean;

  

Allows to show or hide the control, and all of its children.

  property WindowState: TWindowState;

Inheritance

TForm

|

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

The latest version of this document can be found at lazarus-ccr.sourceforge.net.