[Overview][Constants][Types][Classes][Procedures and functions][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Implements a control used to edit time values.
Source position: editbtn.pas line 690
type TTimeEdit = class(TCustomEditButton) |
||
protected |
||
function GetDefaultGlyphName; override; |
|
Gets the resource name for the default glyph displayed on the Button for the control. |
procedure ButtonClick; override; |
|
Performs actions needed when the Button for the control is clicked. |
procedure EditDblClick; override; |
|
Implements the OnDblClick event handler for the Edit in the control. |
procedure EditEditingDone; override; |
|
Implements the OnEditingDone event handler for the Edit in the control. |
public |
||
constructor Create(); override; |
|
Constructor for the class instance. |
property Time: TDateTime; [rw] |
|
Represents the time value in the control. |
property Button: TSpeedButton; |
|
Button is the TSpeedButton that is attached to the grouped edit control. |
property DroppedDown: Boolean; [r] |
|
Indicates if the popup dialog for the control is visible. |
published |
||
property DefaultNow: Boolean; [rw] |
|
Indicates the current time is used for an empty time value. |
property OnAcceptTime: TAcceptTimeEvent; [rw] |
|
Event handler signalled to validate and accept/reject the time value for the control. |
property OnCustomTime: TCustomTimeEvent; [rw] |
|
Event handler signalled to get an arbitrary time value for the control. |
property ReadOnly: Boolean; |
|
Indicates if value in the control cannot be changed. |
property ButtonCaption: TCaption; |
|
Contains the caption used for the Button on the grouped edit control. |
property ButtonCursor: TCursor; |
|
Cursor shape displayed when the mouse hovers over the Button in the control. |
property ButtonHint: TTranslateString; |
|
ButtonHint is the hint that pops up when the mouse hovers over the button. |
property ButtonOnlyWhenFocused: Boolean; |
|
ButtonOnlyWhenFocused - if True, the SpeedButton only appears when focus is given to the EditButton control. |
property ButtonWidth: Integer; |
|
ButtonWidth is the width for the TSpeedButton used in the grouped edit control. |
property Action: TBasicAction; |
|
The Action associated with the control. |
|
Specifies the placement of the control on its Parent control. |
|
|
The set of anchor definitions for this control. |
|
property AutoSize: Boolean; |
|
Allows automatic adjustment of the size for the control, according to its content. |
property AutoSelect: Boolean; |
|
Indicates if the text in the control is automatically selected when focus is received. |
property BidiMode: TBiDiMode; |
|
Customization (of text controls) in bidirectional reading environments. |
property BorderSpacing: TControlBorderSpacing; |
|
Determines the inner and outer border spacing for this control. |
property BorderStyle: TBorderStyle; |
|
Indicates the border style displayed around the control. |
property CharCase: TEditCharCase; |
|
Controls the case conversion used for a value entered in the control. |
|
The background color of the control. |
|
property Constraints: TSizeConstraints; |
|
Contains the minimum and maximum Width and Height for the control. |
property DirectInput: Boolean; |
|
Indicates if text can be entered directly into the BaseEditor control. |
|
Glyph - the small graphic image on the SpeedButton, which ought to indicate its function. |
|
property NumGlyphs: Integer; |
|
NumGlyphs - the number of available glyphs. |
property Images: TCustomImageList; |
|
Contains the Images that can be displayed on the Button for the grouped edit control. |
property ImageIndex: TImageIndex; |
|
Ordinal position in Images for the bitmap displayed on the Button control. |
property ImageWidth: Integer; |
|
Specifies the width of the image displayed on the Button control. |
|
Allows the user to drag the control. |
|
|
Indicates if characters entered in the control value are hidden, displayed, or obscured. |
|
property Enabled: Boolean; |
|
Determines whether the control reacts on mouse or keyboard input. |
property Flat: Boolean; |
|
Flat - if True, SpeedButton appears flat rather than three-dimensional. |
property FocusOnButtonClick: Boolean; |
|
Indicates if the focus is changed to the Edit control after the Button is clicked. |
|
The font to be used for text display in this control. |
|
property MaxLength: Integer; |
|
Maximum number of characters allowed in the editor for the control. |
property OnButtonClick: TNotifyEvent; |
|
OnButtonClick - event handler for a mouse click on the SpeedButton. |
property OnChange: TNotifyEvent; |
|
Event handler signalled when the value for the control is changed. |
property OnChangeBounds: TNotifyEvent; |
|
Event handler signalled when the Bounds of the control have been changed. |
property OnClick: TNotifyEvent; |
|
Notification handler for mouse clicks. |
property OnDblClick: TNotifyEvent; |
|
Event Handler for double mouse clicks. |
property OnContextPopup: TContextPopupEvent; |
|
Invoked when a context-sensitive pop-up menu is requested. |
property OnEditingDone: TNotifyEvent; |
|
Event handler signalled when editing is done. |
property OnEnter: TNotifyEvent; |
|
Handler for control receiving the focus. |
property OnExit: TNotifyEvent; |
|
Handler for control loosing the focus; This is a good place for checking the finished user input. |
|
Handler for keyboard key pressed. |
|
property OnKeyPress: TKeyPressEvent; |
|
Handler for a character entered by the user. |
|
Event handler signalled when a key up event has occurred for the control. |
|
property OnMouseDown: TMouseEvent; |
|
Event handler signalled when a mouse down event is handled for the control. |
property OnMouseEnter: TNotifyEvent; |
|
Event handler signalled when the mouse pointer has entered the control. |
property OnMouseLeave: TNotifyEvent; |
|
Event handler signalled when the mouse pointer has left the control. |
property OnMouseMove: TMouseMoveEvent; |
|
Event handler for mouse movement within the control. |
property OnMouseUp: TMouseEvent; |
|
Event handler signalled when a mouse up event is handled for the control. |
property OnMouseWheel: TMouseWheelEvent; |
|
Event handler for mouse wheel turned. |
property OnMouseWheelDown: TMouseWheelUpDownEvent; |
|
Event handler for downward movement of mouse wheel. |
property OnMouseWheelUp: TMouseWheelUpDownEvent; |
|
Event handler for upward movement of the mouse wheel. |
property OnResize: TNotifyEvent; |
|
Notification handler for a resize of the control. |
property OnUTF8KeyPress: TUTF8KeyPressEvent; |
|
Handler for a character entered by the user. |
property ParentBidiMode: Boolean; |
|
Indicates whether the BiDiMode settings in the Parent control are used. |
property ParentColor: Boolean; |
|
Use the Color from the Parent control, when enabled. |
property ParentFont: Boolean; |
|
If True, the Font of the control will be the same as the one from the Parent. Default is True. |
property ParentShowHint: Boolean; |
|
If True, the value of ShowHint for the control will be the same as the one from the Parent. Default is True. |
property PopupMenu: TPopupMenu; |
|
PopupMenu for the control. |
property ShowHint: Boolean; |
|
Enables Hint display for the control. |
property SimpleLayout: Boolean; [rw] |
|
Indicates if the dialog uses a layout with 30 minute intervals between values. |
property Spacing: Integer; |
|
Specifies the number of pixels reserved between the Edit and Button controls when Button is visible. |
property TabStop: Boolean; |
|
Allows the user to navigate to / from the control by pressing the Tab or Shift+Tab keys. |
|
Indicates the navigation order for the control when the user presses the Tab or Shift+Tab key. |
|
property Visible: Boolean; |
|
Allows the control, and all of its children, to be displayed or hidden. |
|
The character string associated with the control. |
|
property TextHint: TTranslateString; |
|
Contains the hint text displayed for the grouped edit control. |
end; |
|
Implements a control used to edit time values. |
|
| | ||
|
TCustomEditButton - base class for TEditButton, an Edit Box with attached Speed Button. |
|
| | ||
|
Implements a grouped edit control. |
|
| | ||
|
The base class for windowed controls which paint themselves. |
|
| | ||
|
Implements a windowed control which can contain other child controls. |
|
| | ||
|
The base class for visible controls. |
|
| | ||
|
The base class for LCL components which have an associated widget. |
|
| | ||
TComponent |
||
? | ||
TObject |
TTimeEdit is a TCustomEditButton descendant which implements a control used to edit a time value. TTimeEdit provides the Edit and Button properties defined in the ancestor class, and a dialog that is executed to select a time value when the Button is clicked.
The time value in the control is represented using the TDateTime type; only the time portion of the value is significant.
|
TCustomEditButton - base class for TEditButton, an Edit Box with attached Speed Button. |