Description | Hierarchy | Fields | Methods | Properties |
type TQRbwDynamicCursor = class(TComponent)
TQRbwDynamicCursor
provides a convenient way to draw a cursor at runtime.
![]() |
FHotPointY: integer; |
![]() |
FHotPointX: integer; |
![]() |
FCursor: TCursor; |
![]() |
FOnDrawCursor: TDrawCursor; |
![]() |
Modified: boolean; |
![]() |
Drawing: boolean; |
![]() |
procedure SetCursor(const Value: TCursor); |
![]() |
procedure SetHotPointX(const Value: integer); |
![]() |
procedure SetHotPointY(const Value: integer); |
![]() |
procedure SetOnDrawCursor(const Value: TDrawCursor); |
![]() |
Procedure DrawCursor; virtual; |
![]() |
procedure DrawDefaultBitMap(const AndImage : TBitMap); virtual; |
![]() |
function GetCursor : TCursor; virtual; |
![]() |
function GetCursorHeight : integer; virtual; |
![]() |
function GetCursorWidth : integer; virtual; |
![]() |
procedure Loaded; override; |
![]() |
procedure CreateCursor(const AndImage, XorImage: Qgraphics.TBitmap); virtual; |
![]() |
Constructor Create(AOwner: TComponent); override; |
![]() |
Destructor Destroy; override; |
![]() |
procedure RedrawCursor; virtual; |
![]() |
property CursorHeight : integer read GetCursorHeight; |
![]() |
property CursorWidth : integer read GetCursorWidth; |
![]() |
property Cursor : TCursor read GetCursor write SetCursor; |
![]() |
property HotPointX : integer read FHotPointX write SetHotPointX; |
![]() |
property HotPointY : integer read FHotPointY write SetHotPointY; |
![]() |
property OnDrawCursor : TDrawCursor read FOnDrawCursor
write SetOnDrawCursor; |
![]() |
FHotPointY: integer; |
![]() |
FHotPointX: integer; |
![]() |
FCursor: TCursor; |
![]() |
FOnDrawCursor: TDrawCursor; |
![]() |
Drawing: boolean; |
![]() |
procedure SetCursor(const Value: TCursor); |
![]() |
procedure SetHotPointX(const Value: integer); |
![]() |
procedure SetHotPointY(const Value: integer); |
![]() |
procedure SetOnDrawCursor(const Value: TDrawCursor); |
![]() |
Procedure DrawCursor; virtual; |
Private declarations |
![]() |
procedure DrawDefaultBitMap(const AndImage : TBitMap); virtual; |
![]() |
function GetCursor : TCursor; virtual; |
![]() |
function GetCursorHeight : integer; virtual; |
![]() |
function GetCursorWidth : integer; virtual; |
![]() |
procedure Loaded; override; |
![]() |
procedure CreateCursor(const AndImage, XorImage: Qgraphics.TBitmap); virtual; |
Protected declarations |
![]() |
Destructor Destroy; override; |
![]() |
procedure RedrawCursor; virtual; |
RedrawCursor should be called when the cursor defined by TQRbwDynamicCursor needs to be changed. |
![]() |
property CursorHeight : integer read GetCursorHeight; |
CursorHeight is the height of the cursor in pixels supported by the current display driver. |
![]() |
property CursorWidth : integer read GetCursorWidth; |
CursorWidth is the Width of the cursor in pixels supported by the current display driver. |
![]() |
property Cursor : TCursor read GetCursor write SetCursor; |
Cursor is a TCursor value that may be assigned to instances of other components, such as TForm that have a Cursor property. Doing so, will cause the cursor of that other component to be the one defined using TQRbwDynamicCursor. You should be certain that the value assigned to Cursor does not conflict with a custom cursor defined by something other than a TQRbwDynamicCursor. |
![]() |
property HotPointX : integer read FHotPointX write SetHotPointX; |
HotPointX specifies the horizontal position of the cursor's hot spot. Setting HotPointX will not cause the cursor to be redrawn. |
![]() |
property HotPointY : integer read FHotPointY write SetHotPointY; |
HotPointY specifies the vertical position of the cursor's hot spot. Setting HotPointY will not cause the cursor to be redrawn. |
![]() |
property OnDrawCursor : TDrawCursor read FOnDrawCursor
write SetOnDrawCursor; |
OnDrawCursor occurs after the creation of a pair of monochrome TBitMap's used to define the cursor that appears on the screen. These TBitMap's are passed to the event handler which should draw on the TBitMap's Canvas's to define the cursor that appears on the screen. If the event handler is not assigned, the protected method, DrawDefaultCursor, is called instead. The AndImage will apply bitwise and operation to the area overlain by the cursor. The XorImage will apply bitwise xor operation to the area overlain by the cursor. |