TbtnImageButton Class

Unit: cImageButton
TFrame
  _ButtonsAncestor.T__ButtonAncestor
    cImageButton.TbtnImageButton
type TbtnImageButton = class(T__ButtonAncestor)

The TbtnImageButton type exposes the following members.

Show:
 NameDescription
Create

Returns an instance of this class (Overrides _ButtonsAncestor.T__ButtonAncestor.Create .)

Top
Show:
 NameDescription
IsDown

Manage the status of this button (False by default) (Inherited from _ButtonsAncestor.T__ButtonAncestor .)

IsFocused

Manage the focus state of this button (Inherited from _ButtonsAncestor.T__ButtonAncestor .)

IsPressed

IsPressedButton

IsUp

Manage the status of this button (True by default) (Inherited from _ButtonsAncestor.T__ButtonAncestor .)

Kind

Number

ShowNumber

Text

The text shown on this button (Inherited from _ButtonsAncestor.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 _ButtonsAncestor.T__ButtonAncestor .)

Top
Show:
 NameDescription
AfterConstruction

internal use, call it only if you override it in a descendant (Overrides _ButtonsAncestor.T__ButtonAncestor.AfterConstruction .)

BeforeDestruction

internal use, call it only if you override it in a descendant (Inherited from _ButtonsAncestor.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) (Overrides _ButtonsAncestor.T__ButtonAncestor.Click .)

DoTranslateTexts
FrameMouseDown
FrameMouseLeave
FrameResized

IsClickable

By default this function returns True if the onClick events is not nil (Inherited from _ButtonsAncestor.T__ButtonAncestor .)

Repaint

Called to refresh the button on screen, override it in your descendants or it will crash ! (Overrides _ButtonsAncestor.T__ButtonAncestor.Repaint .)

ResetFocus

mostly internal use, change then IsFocused property is better (Inherited from _ButtonsAncestor.T__ButtonAncestor .)

SetFocus

mostly internal use, change then IsFocused property is better (Inherited from _ButtonsAncestor.T__ButtonAncestor .)

TranslateTexts

Where you can translate the text of your button (override and call it in your descendants) (Inherited from _ButtonsAncestor.T__ButtonAncestor .)

lExposantResized

Top
Show:
 NameDescription
GlowEffect1

ShadowEffect1

lExposant

rImage

txtExposant

Top