TTheQuizHelloButton Class

Definition

Delphi
type TTheQuizHelloButton = class(T__TheQuizAncestorButton)
Inheritance
TFrame
TTheQuizHelloButton

Constructors

Create(TComponent)

Returns an instance of this class

(Inherited from T__ButtonAncestor)

Properties

IsDown

Manage the status of this button (False by default)

(Inherited from T__ButtonAncestor)
IsFocused

Manage the focus state of this button

(Inherited from T__ButtonAncestor)
IsUp

Manage the status of this button (True by default)

(Inherited from T__ButtonAncestor)
Text

The text shown on this button

(Inherited from T__ButtonAncestor)
TimeBetweenDownAndUpStatesWhenClicked

Sleeping time between Down and up states when the Click method is called. Value is in milliseconds, used by the sleep() instruction.

(Inherited from T__ButtonAncestor)

Methods

AfterConstruction

internal use, call it only if you override it in a descendant

(Inherited from T__ButtonAncestor)
BeforeDestruction

internal use, call it only if you override it in a descendant

(Inherited from T__ButtonAncestor)
Click

Called when the button is clicked. - activate the down status - wait for TimeBetweenDownAndUpStatesWhenClicked ms - activate the up status - call the onClick() event if it's not empty (you can override it but it's better to fill the onClick event)

(Inherited from T__ButtonAncestor)
DoTranslateTexts(TObject, TMessage) (Inherited from T__ButtonAncestor)
FrameMouseDown(TObject, TMouseButton, TShiftState, Single, Single) (Inherited from T__ButtonAncestor)
FrameMouseLeave(TObject) (Inherited from T__ButtonAncestor)
IsClickable

By default this function returns True if the onClick events is not nil

(Inherited from T__ButtonAncestor)
Repaint

Called to refresh the button on screen, override it in your descendants or it will crash !

(Inherited from T__TheQuizAncestorButton)
ResetFocus

mostly internal use, change then IsFocused property is better

(Inherited from T__ButtonAncestor)
SetFocus

mostly internal use, change then IsFocused property is better

(Inherited from T__ButtonAncestor)
TranslateTexts(string)

Where you can translate the text of your button (override and call it in your descendants)

(Inherited from T__ButtonAncestor)

Fields