Components with Handlers

TForm

Form

OnRefObject


OnProcessCard


TGButton

Button

TGOperationButton

The button performing a standard operation

OnPressButton

Button Click Handler

TNotifyEvent

TButtonPanel

Set of buttons

TSelectorPanel

Selector

OnSuitableObject

Checks whether to show this object

procedure (Sender:tBasePanel;Obj: TObject;var Suitable:boolean)

AfterConnectObject

Allows changing the properties of the button on which the object is displayed

procedure(Obj:TObject; Button:TGCustomButton)

OnContainChilds

Checks whether the object has subitems

procedure(Sender: TCustomButtonPanel; Obj: TObject; var res: boolean)

OnButtonPressed

Button Click Handler

TNotifyEvent

OnSelectItem

Called when an object is selected (more relevant for keyboard stations)

procedure(Obj:TObject; Button:TGCustomButton)

OnCanChangeSelection

Whether it is possible to move to another item

procedure (Sender:TCustomButtonPanel;var Allow:boolean)

OnGetPanelSize

Setting the selector size

procedure (Sender: TCustomButtonPanel; var RowCount, ColCount, MinRowCount, MinColCount: integer)

TCheckView

Viewing the order content

OnBeforeCheckViewEdit

Called before adding the item to the order

procedure (Sender: TObject; AEditType: TEditType; AObjectBef, AObjectAft: TObject; var AAllow: boolean;  var AMessage: string)

OnAfterCheckViewEdit

Called after adding an item to the order

procedure (Sender: TObject; AEditType: TEditType; AObjectBef, AObjectAft: TObject)

OnOrderVerify


Called before important events

procedure (Sender: TObject; AVerifyType: TVerifyType; oper: integer; var AContinue: boolean)

BeforeCurItemChanged

Called before moving to another line in CheckView

procedure (Sender: TObject; NewItem: integer; var Allow: boolean)

OnGetColors

Allows coloring the CheckView depending on the order content

procedure (Sender: TObject; CheckItem: TObject; Selected: boolean; var Color, FontColor: TColor)

OnGetCollection

Specifies which collection to show in the selector

procedure (Sender:TSelectorPanel; var col:tReferentCollection; var ParentObject:tObject)

OnCompare

Elements comparison. Called to sort the selector elements by the custom type

function(a,b:tObject):integer

OnSendObject

procedure (Sender:TSelectorPanel; var item:tObject)

TGEditor

Text input field

OnChange

Called to check if the text can be changed

procedure (Sender: TObject; var NewText: string; var Allow: boolean)

OnChanged

Called when the text changes

tNotifyEvent

TNumEditor

Input field for numbers

OnEnterKey

Called by pressing the Enter button

procedure(Sender:TCustomNumEditor;var GoNextField:Boolean)

TCodeEditor

Input field for selecting a reference item

OnSuitableItem

Checks whether this object can be selected

procedure (Sender:tBasePanel;item:tReferentItem;var Suitable:boolean)

OnNewItem

Called when an object is selected

procedure(Item:tReferentItem;Editor:tCodeEditor)

TGLabel

Text label

TGPanel

Panel

TTimer

Timer

OnTimer

Action to perform when the timer is triggered

TNotifyEvent

  • No labels