Class TCastleProgressBar

Unit

Declaration

type TCastleProgressBar = class(TCastleUserInterfaceFont)

Description

Warning: this symbol is deprecated: use own UI to display progress bar (e.g. one rectangle using WidthFraction within a bigger rectangle)

Progress bar user interface. This is usually used through the CastleWindowProgress and CastleProgress features. There is no need to directly create and access the TCastleProgressBar instance in this case.

Hierarchy

Overview

Methods

Protected procedure PreferredSize(var PreferredWidth, PreferredHeight: Single); override;
Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy; override;
Public procedure Render; override;

Properties

Public property HorizontalAnchorSelf default hpMiddle;
Public property HorizontalAnchorParent default hpMiddle;
Public property VerticalAnchorSelf default vpMiddle;
Public property VerticalAnchorParent default vpMiddle;
Public property Progress: TProgress read FProgress write FProgress;
Public property Background: TCastleImage read FBackground write SetBackground;
Public property YPosition: Single read FYPosition write FYPosition default TProgressUserInterface.DefaultBarYPosition;

Description

Methods

Protected procedure PreferredSize(var PreferredWidth, PreferredHeight: Single); override;
 
Public constructor Create(AOwner: TComponent); override;
 
Public destructor Destroy; override;
 
Public procedure Render; override;
 

Properties

Public property HorizontalAnchorSelf default hpMiddle;
 
Public property HorizontalAnchorParent default hpMiddle;
 
Public property VerticalAnchorSelf default vpMiddle;
 
Public property VerticalAnchorParent default vpMiddle;
 
Public property Progress: TProgress read FProgress write FProgress;

Progress that rules the position and title displayed.

Public property Background: TCastleImage read FBackground write SetBackground;

Background drawn under the progress bar. When it's assigned, it's always drawn scaled to cover the whole screen (container). It's owner by this component (it will be automatically freed when necessary).

Public property YPosition: Single read FYPosition write FYPosition default TProgressUserInterface.DefaultBarYPosition;

Vertical positon of the progress bar. 0 means the middle of progress bar is at the bottom of the container, 1 means at the top. 0.5 indicates the middle, and it's the default.

Note that extreme values (0 or 1) mean that bottom or top half of the progress bar doesn't fit on the screen, as this property positions the middle of the progress bar.


Generated by PasDoc 0.16.0.