[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'EditBtn' (#lcl)

TCalcEdit

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TCalcEdit - an EditBox to hold a numeric value, with an attached SpeedButton that will summon a calculator dialog

Declaration

Source position: editbtn.pas line 405

type TCalcEdit = class(TCustomEditButton)

protected

  FCalcDialog: TForm;

  

  function GetDefaultGlyph; override;

  function GetDefaultGlyphName; override;

  procedure DoButtonClick(); override;

  

  procedure RunDialog; virtual;

  

RunDialog - perform the function of the dialog

public

  constructor Create(); override;

  

  destructor Destroy; override;

  

published

  property CalculatorLayout: TCalculatorLayout; [rw]

  

CalculatorLayout - normal or simple

  property AsFloat: Double; [rw]

  

AsFloat - holds the result of the calculation as a floating-point (double precision) number

  property AsInteger: Integer; [rw]

  

AsInteger - holds the result of the calculation as an Integer

  property OnAcceptValue: TAcceptValueEvent; [rw]

  

OnAcceptValue - event handler for accepting the result of the calculation

  property DialogTitle: String; [rws]

  

DialogTitle - the caption to be used for the dialog

  property ButtonWidth;

  

  property DirectInput;

  

  property ButtonOnlyWhenFocused;

  

  property NumGlyphs;

  

  property Flat;

  

  property Align;

  

  property Anchors;

  

  property BorderSpacing;

  

  property AutoSize;

  

  property AutoSelect;

  property Color;

  

  property Ctl3D;

  

  property DragCursor;

  

  property DragMode;

  

  property Enabled;

  

  property Font;

  

  property MaxLength;

  

  property ParentColor;

  

  property ParentCtl3D;

  

  property ParentFont;

  

  property ParentShowHint;

  

  property PopupMenu;

  

  property ReadOnly;

  

  property ShowHint;

  

  property TabOrder;

  

  property TabStop;

  

  property Visible;

  

  property OnChange;

  

  property OnClick;

  

  property OnDblClick;

  

  property OnDragDrop;

  

  property OnDragOver;

  

  property OnEditingDone;

  property OnEndDrag;

  

  property OnEnter;

  

  property OnExit;

  

  property OnKeyDown;

  

  property OnKeyPress;

  

  property OnKeyUp;

  

  property OnMouseDown;

  

  property OnMouseMove;

  

  property OnMouseUp;

  

  property OnStartDrag;

  

  property OnUTF8KeyPress;

end;

Inheritance

TCalcEdit

  

TCalcEdit - an EditBox to hold a numeric value, with an attached SpeedButton that will summon a calculator dialog

|

TCustomEditButton

  

TCustomEditButton - base class for TEditButton, an Edit Box with attached Speed Button

|

TCustomEdit

?

TObject