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

TfpgWindowBase

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

Abstract class use for representing a Window or Widget

Declaration

Source position: fpg_base.pas line 425

type TfpgWindowBase = class(TfpgComponent)

protected

  FMouseCursor: TMouseCursor;

  FWindowType: TWindowType;

  FWindowAttributes: TWindowAttributes;

  FTop: TfpgCoord;

  FLeft: TfpgCoord;

  FWidth: TfpgCoord;

  FHeight: TfpgCoord;

  FPrevTop: TfpgCoord;

  FPrevLeft: TfpgCoord;

  FPrevWidth: TfpgCoord;

  FPrevHeight: TfpgCoord;

  FMinWidth: TfpgCoord;

  FMinHeight: TfpgCoord;

  FMaxHeight: TfpgCoord;

  FMaxWidth: TfpgCoord;

  FCanvas: TfpgCanvasBase;

  FSizeIsDirty: Boolean;

  FPosIsDirty: Boolean;

  FMouseCursorIsDirty: Boolean;

  FOnDragStartDetected: TNotifyEvent;

  FDragActive: Boolean;

  FWindowState: TfpgWindowState;

  function HandleIsValid; virtual; abstract;

  procedure DoUpdateWindowPosition; virtual; abstract;

  procedure DoAllocateWindowHandle(); virtual; abstract;

  procedure DoReleaseWindowHandle; virtual; abstract;

  procedure DoRemoveWindowLookup; virtual; abstract;

  procedure DoSetWindowVisible(); virtual; abstract;

  procedure DoMoveWindow(); virtual; abstract;

  function DoWindowToScreen(); virtual; abstract;

  procedure DoSetWindowTitle(); virtual; abstract;

  procedure DoSetMouseCursor; virtual; abstract;

  procedure DoDNDEnabled(); virtual; abstract;

  procedure DoAcceptDrops(); virtual; abstract;

  function GetWindowState; virtual;

  procedure SetWindowState(); virtual;

  procedure DoDragStartDetected; virtual;

  procedure SetParent(); virtual;

  function GetParent; virtual;

  function GetCanvas; virtual;

  procedure AllocateWindowHandle;

  procedure ReleaseWindowHandle;

  procedure SetWindowTitle(); virtual;

  procedure SetTop();

  procedure SetLeft();

  procedure SetHeight();

  procedure SetWidth();

  procedure HandleMove(); virtual;

  procedure HandleResize(); virtual;

  property OnDragStartDetected: TNotifyEvent; [rw]

  property WindowState: TfpgWindowState; [r]

public

  constructor Create(); override;

  procedure AfterConstruction; override;

  procedure AdjustWindowStyle; virtual;

  procedure SetWindowParameters; virtual;

  function Right;

  function Bottom;

  procedure UpdateWindowPosition;

  

Forces fpGUI to act on window position and size properties

  procedure MoveWindow();

  function WindowToScreen();

  function HasParent; override;

  function GetClientRect; virtual;

  function GetBoundsRect; virtual;

  procedure ActivateWindow; virtual; abstract;

  procedure CaptureMouse; virtual; abstract;

  procedure ReleaseMouse; virtual; abstract;

  procedure BringToFront; virtual; abstract;

  procedure SetFullscreen(); virtual;

  property HasHandle: Boolean; [r]

  property WindowType: TWindowType; [rw]

  property WindowAttributes: TWindowAttributes; [rw]

  property Left: TfpgCoord; [rw]

  

Specifies the horizontal coordinate of the left edge of a component relative to its parent

  property Top: TfpgCoord; [rw]

  

Specifies the vertical (X) coordinate of the top edge of a component relative to its parent

  property Width: TfpgCoord; [rw]

  

Specifies the horizontal size of the control or form in pixels

  property Height: TfpgCoord; [rw]

  

Specifies the vertical size of the control or form in pixels

  property MinWidth: TfpgCoord; [rw]

  property MinHeight: TfpgCoord; [rw]

  property MaxWidth: TfpgCoord; [rw]

  property MaxHeight: TfpgCoord; [rw]

  property Canvas: TfpgCanvasBase; [r]

  property Parent: TfpgWindowBase; [rw]

  property MouseCursor: TMouseCursor; [rw]

end;

Inheritance

TfpgWindowBase

  

Abstract class use for representing a Window or Widget

|

TfpgComponent

|

TComponent

?

TObject

Description

fpGUI is a Windowed toolkit. By that we mean that every widget has a window handle. Widgets are essentially embedded windows without titlebars or borders, inside a parent window.


Documentation generated on: 2012-01-26