Class TGUIWindow

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TGUIWindow = class(TGUIElement)

Description

Default moveable window GUI element with border, caption and close icons.

Hierarchy

Overview

Methods

Public function GetCloseButton: TGUIButton; inline;
Public function GetMaximizeButton: TGUIButton; inline;
Public function GetMinimizeButton: TGUIButton; inline;

Properties

Public property ClientRect: TRect read GetClientRect;
Public property Draggable: Boolean read IsDraggable write SetDraggable;
Public property DrawBackground: Boolean read GetDrawBackground write SetDrawBackground;
Public property DrawTitleBar: Boolean read GetDrawTitleBar write SetDrawTitleBar;

Description

Methods

Public function GetCloseButton: TGUIButton; inline;

Returns the window's close button.
You can hide the button by setting its Visible property to False.

Public function GetMaximizeButton: TGUIButton; inline;

Returns the window's maximize button.
You can hide the button by setting its Visible property to False.

Public function GetMinimizeButton: TGUIButton; inline;

Returns the window's minimize button.
You can hide the button by setting its Visible property to False.

Properties

Public property ClientRect: TRect read GetClientRect;

Returns the rectangle of the drawable area (without border and without titlebar).
The coordinates are given relative to the top-left position of the gui element. So to get absolute positions you have to add the resulting rectangle to AbsolutePosition.Left and .Top .
To get it relative to the parent element you have to add the resulting rectangle to RelativePosition.Left and .Top. Be aware that adding a menu will not change the ClientRect as menus are own gui elements, so in that case you might want to subtract the menu area additionally.

Public property Draggable: Boolean read IsDraggable write SetDraggable;

Specifies whether the window may be dragged by its title bar.

Public property DrawBackground: Boolean read GetDrawBackground write SetDrawBackground;

Specifies whether to draw the window's background.

Public property DrawTitleBar: Boolean read GetDrawTitleBar write SetDrawTitleBar;

Specifies whether the window has a title bar.


Generated by PasDoc 0.12.1 on 2012-09-14 17:32:22