[Overview][Resource strings][Constants][Types][Classes][Procedures and functions] Reference for unit 'fpGUI' (#fpgui)

TCustomForm

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

TCustomForm is a base class from which to derive a window such as a form or dialog.

Declaration

Source position: form.inc line 23

type TCustomForm = class(TBinWidget)

protected

  FBorderWidth: Integer;

  

  FIsActive: Boolean;

  

  FResizedByUser: Boolean;

  

  FPositionSpecified: Boolean;

  

  procedure Loaded; override;

  

  procedure Paint(); override;

  

  procedure Resized; override;

  

  function WidgetCoords();

  

  function ProcessEvent(); override;

  

  procedure CalcSizes; override;

  

  procedure EvTextChanged; override;

  

  procedure CreateWnd;

  

  property CanExpandWidth;

  

  property CanExpandHeight;

  

  property Cursor;

  

  property BorderWidth: Integer; [rw]

  

  property OnCreate: TNotifyEvent; [rw]

  

  property OnDestroy: TNotifyEvent; [rw]

  

  property OnActivate: TNotifyEvent; [rw]

  

  property OnDeactivate: TNotifyEvent; [rw]

  

public

  constructor Create(); override;

  

  destructor Destroy; override;

  

  procedure Show; override;

  

  procedure ShowModal;

  procedure Close; virtual;

  

  procedure SetPosition();

  

  property FocusedWidget: TWidget; [rw]

  

  property IsActive: Boolean; [r]

  

  property MouseCaptureWidget: TWidget; [rw]

  

  property WindowOptions: TFWindowOptions; [rw]

  property Wnd: TFCustomWindow; [r]

  

end;

Inheritance

TCustomForm

  

TCustomForm is a base class from which to derive a window such as a form or dialog.

|

TBinWidget

  

This is a concrete class that implements all the TContainerWidget's abstract methods

|

TContainerWidget

  

TContainerWidget is an abstract class that defines the interface for containing other widgets

|

TWidget

  

The TWidget class is the base class of all user interface objects.

|

TComponent

?

TObject

Description

Derive from TCustomForm to create a custom window. The TCustomForm descendant can contain other objects, such as TButton, TCheckBox and TComboBox objects, but they have to be placed into a Layout Manager class.

See also

TBoxLayout

  

Lays out widgets in a horizontal or vertical position.

TFixedLayout

  

The TFixedLayout allows you to arrange widgets at set x and y co-ordinates

TGridLayout

  

The TGridLayout class lays out widgets in a grid.