TCustomAbstractGroupedEdit class
Implements a grouped edit control.
Declaration
TCustomAbstractGroupedEdit = class(TCustomControl)Inheritance
- TCustomAbstractGroupedEdit
- TCustomControl
- TWinControl
- TControl
- TLCLComponent
- TComponent
- TPersistent
- TObject
Descends from it: TAbstractGroupedEdit TCustomEditButton
Description
TCustomAbstractGroupedEdit is a
TCustomControl
descendant which implements a grouped edit control.
TCustomAbstractGroupedEdit is composed of a TGEEdit control that provides an
editor for the control value, and a related TControl descendant.
TCustomAbstractGroupedEdit basically acts as a container for the grouped
controls, and ensures that Alignment and Anchoring are performed.
TCustomAbstractGroupedEdit forwards relevant methods and properties to the
BaseEditor or Buddy members, and receives event
notifications from both.
Derived classes should implement their own BaseEditor and Buddy properties so that they will have the correct class types.
See also
Properties
AutoSelect | protected | Indicates if the text in the control is automatically selected when focus is received. |
AutoSelected | protected | Indicates if the current text selection was performed automatically. |
Buddy | protected | Represents the associated TControl instance in the grouped edit control. |
BuddyCaption | protected | Caption used for the Buddy control. |
BuddyCursor | protected | Cursor shape used for the Buddy control. |
BuddyHint | protected | Hint displayed for the Buddy control. |
BuddyWidth | protected | Width for the Buddy control. |
DirectInput | protected | Indicates if text can be entered directly into the BaseEditor control. |
BaseEditor | protected | Represents the control used as the editor for the value in the grouped edit control. |
EditMask | protected | Contains the masking characters used in the editor for the control. |
EditText | protected | Contains the value entered in the control including masking characters. |
FocusOnBuddyClick | protected | Determines if the control receives focus when the Buddy control is clicked. |
IsMasked | protected | Indicates if an edit mask is in use in the BaseEditor in the grouped edit control. |
Layout | protected | Controls the alignment of the edit control and its associate. |
Spacing | protected | Spacing used between the BaseEditor and the Buddy controls. |
Autosize | public | Allows automatic adjustment of the size for the control, according to its content. |
AutoSizeHeightIsEditHeight | public | Indicates if the height for BaseEditor is used as the height for the control when auto-sizing. |
Alignment | public | Indicates the text alignment used for the control value. |
CanUndo | public | Indicates if the Undo method can used to revert changes to the control value. |
CaretPos | public | Position of the editing caret in the control. |
CharCase | public | Controls the case conversion used for a value entered in the control. |
Color | public | Background color for the BaseEditor on the control. |
ParentColor | public | Indicates if the color in the Parent control is used. |
EchoMode | public | Indicates if characters entered in the control value are hidden, displayed, or obscured. |
HideSelection | public | Hides the current text selection when the control loses focus. |
MaxLength | public | Maximum number of characters allowed in the editor for the control. |
Modified | public | Indicates if the value for the control has been changed by the user. |
NumbersOnly | public | Indicates if the edit control accepts numeric values only. |
PasswordChar | public | Contains the character displayed to obfuscate the text on the control when a value is entered or displayed. |
PopupMenu | public | PopupMenu for the control. |
ReadOnly | public | Indicates whether the value for the control can be changed. |
SelLength | public | Number of characters in the current selection for the control. |
SelStart | public | Starting position for the current selection in the control. |
SelText | public | Returns the selected text in the control. |
TabStop | public | Indicates if the control can be reached using Tab navigation. |
Text | public | String with the text or caption for the control. |
TextHint | public | Default hint text shown when the Text property is empty for the grouped edit control. |
Methods
WSRegisterClass | protected | Registers the widget set class used to create new instances of the grouped edit. |
CalculatePreferredSize | protected | Calculates the preferred size for the control with optional space reserved by theme services. |
CreateBuddy | protected | Creates the TControl instance assigned to the Buddy property. |
CreateEditor | protected | Creates the TGEEdit instance used in the BaseEditor property. |
FocusAndMaybeSelectAll | protected | Gives focus to the control, and optionally selects text in its editor. |
GetEditorClassType | protected | Gets the class reference used to create the BaseEditor for the control. |
GetBuddyClassType | protected | Gets the class reference used to create the Buddy for the control. |
GetControlClassDefaultSize | protected | Gets the default size for new instances of the control. |
SetDirectInput | protected | Sets the value for the DirectInput property. |
RealGetText | protected | Gets the value for the text in the control. |
RealSetText | protected | Sets the value for the text in the control. |
GetEditPopupMenu | protected | Gets the popup menu for the BaseEditor in the control. |
GetBuddyCaption | protected | Gets the Caption used in the Buddy property. |
GetBuddyCursor | protected | Gets the value for the BuddyCursor property. |
GetBuddyHint | protected | Gets the value for the BuddyHint property. |
GetBuddyWidth | protected | Gets the value for the BuddyWidth property. |
GetBuddyVisible | protected | Gets the Visible property for the Buddy control. |
SetBuddyCaption | protected | Sets the Caption used in the Buddy property. |
SetBuddyCursor | protected | Sets the cursor shape used in the Buddy property. |
SetBuddyHint | protected | Sets the Hint displayed for the Buddy property. |
SetBuddyWidth | protected | Sets the Width used for the Buddy property. |
SetBuddyVisible | protected | Sets the value for the Visible property in the Buddy control. |
BuddyClick | protected | Performs actions needed when the Buddy control is clicked. |
DoEnter | protected | Performs actions needed when the control is entered. |
EditChange | protected | Signals the OnEditChange event handler, when assigned. |
EditClick | protected | Signals the internal OnEditClick event handler, when assigned. |
EditContextPopup | protected | Signals the OnContextPopup event handler (when assigned). |
EditDblClick | protected | Signals the OnDblClick event handler (when assigned). |
EditDragDrop | protected | Signals the OnDragDrop event handler (when assigned). |
EditDragOver | protected | Signals the OnDragOver event handler (when assigned). |
EditEditingDone | protected | Signals the OnEditEditingDone event handler (when assigned). |
EditEndDrag | protected | Signals the OnEditEndDrag event handler (when assigned). |
EditEnter | protected | Signals the OnEnter event handler (when assigned). |
EditExit | protected | Signals the OnExit event handler (when assigned). |
EditKeyDown | protected | Signals the OnKeyDown event handler (when assigned). |
EditKeyPress | protected | Signals the OnKeyPress event handler (when assigned). |
EditKeyUp | protected | Signals the OnKeyUp event handler (when assigned). |
EditMouseDown | protected | Signals the OnMouseDown event handler (when assigned). |
EditMouseUp | protected | Signals the OnMouseUp event handler (when assigned). |
EditMouseEnter | protected | Signals the OnMouseEnter event handler (when assigned). |
EditMouseLeave | protected | Signals the OnMouseLeave event handler (when assigned). |
EditMouseMove | protected | Signals the OnMouseMove event handler (when assigned). |
EditMouseWheel | protected | Signals the OnMouseWheel event handler (when assigned). |
EditMouseWheelUp | protected | Signals the OnMouseWheelUp event handler (when assigned). |
EditMouseWheelDown | protected | Signals the OnMouseWheelDown event handler (when assigned). |
EditUtf8KeyPress | protected | Signals the OnUtf8KeyPress event handler (when assigned). |
EditStartDrag | protected | Signals the OnStartDrag event handler (when assigned). |
UpdateSpacing | protected | Updates border spacing in BaseEditor for the Layout and visibility of the Buddy control. |
CheckCursor | protected | Forwards a CheckCursor method call to the BaseEditor for the control. |
CMParentColorChanged | protected | Handles the control message received when the ParentColor property is changed. |
EditCanModify | protected | Indicates if BaseEditor can be modified. |
GetSel | protected | Gets the offsets for the current text selection in the control. |
GetSpacing | protected | Gets the value for the Spacing property. |
SetSel | protected | Sets the current text selection in the control. |
Loaded | protected | Performs actions when the control has finished loading in the LCL streaming mechanism. |
Reset | protected | Forwards a Reset method call to the BaseEditor in the control. |
SetAutoSize | protected | Sets the value for the AutoSize property. |
SetColor | protected | Sets the value for the Color property. |
SetCursor | protected | Sets the value for the Cursor property. |
ShouldAutoAdjust | protected | Indicates if the height or width is affected during auto-adjust. |
Create | public | Constructor for the class instance. |
Destroy | public | Destructor for the class instance. |
SetFocus | public | Sets the focus to the editor in the control. |
Focused | public | Performs actions needed when the control receives focus. |
Clear | public | Removes the text content in the control. |
ClearSelection | public | Clears the content for the current selection in the control. |
CopyToClipboard | public | Copies the content in the control to the clipboard. |
CutToClipboard | public | Copies content in the control to the clipboard, and removes it from the control. |
PasteFromClipboard | public | Pastes content into the control from the clipboard. |
SelectAll | public | Selects all of the content in the control. |
Undo | public | Reverses the last edit performed on the control value. |
ValidateEdit | public | Performs actions needed to validate the value for the control. |
Events
OnBuddyClick | protected | Event handler signalled when the Buddy control is clicked. |
OnChange | public | Event handler signalled when the value for the control is changed. |
OnClick | public | Notification handler for mouse clicks. |
OnContextPopup | public | Invoked when a context-sensitive pop-up menu is requested. |
OnDblClick | public | Event handler signalled when a mouse double click occurs in the control. |
OnDragDrop | public | Event handler signalled when an object is dropped onto the control. |
OnDragOver | public | Event handler signalled when a control is dragged over the control instance. |
OnEditingDone | public | Event handler signalled when editing is completed for the control. |
OnEndDrag | public | Event handler signalled for the end of a drag-drop operation. |
OnEnter | public | Event handler signalled when the control receives focus. |
OnExit | public | Event handler signalled when the control loses focus. |
OnMouseDown | public | Event handler signalled when a mouse down event is handled for the control. |
OnKeyPress | public | Event handler signalled for character data entered by the user. |
OnKeyDown | public | Event handler signalled for key down keyboard events. |
OnKeyUp | public | Event handler signalled when a key up event has occurred for the control. |
OnMouseEnter | public | Event handler signalled when the mouse pointer has entered the control. |
OnMouseLeave | public | Event handler signalled when the mouse pointer has left the control. |
OnMouseMove | public | Event handler signalled when the mouse pointer is moved in the control. |
OnMouseWheel | public | Event handler for mouse wheel turned. |
OnMouseWheelUp | public | Event handler signalled for an upward movement of the mouse wheel. |
OnMouseWheelDown | public | Event handler signalled for a downward movement of the mouse wheel. |
OnMouseUp | public | Event handler signalled when a mouse up event is handled for the control. |
OnStartDrag | public | Event handler signalled for the start of a dragging operation. |
OnUtf8KeyPress | public | Event handler signalled for UTF-8 key press events. |
Inherited
From TCustomControl (8)
BorderStyle Canvas DestroyWnd FontChanged OnPaint Paint PaintWindow WMPaint
From TWinControl (223)
AddControl AdjustClientRect AlignControls AllAutoSized AutoAdjustLayout AutoSizeDelayed AutoSizeDelayedHandle AutoSizeDelayedReport AutoSizePhases BeginUpdateBounds BorderWidth BoundsLockCount BroadCast Brush BrushCreated CachedClientHeight CachedClientWidth CanFocus CanSetFocus CanTab ChangeScale ChildClassAllowed ChildHandlesCreated ChildKey ChildSizing ClientRectNeedsInterfaceUpdate CMBiDiModeChanged CMBorderChanged CMDoubleBufferedChanged CMEnabledChanged CMEnter CMExit CMParentDoubleBufferedChanged CMShowHintChanged CMShowingChanged CMVisibleChanged CNChar CNKeyDown CNKeyUp CNSysKeyDown CNSysKeyUp ContainsControl ControlAtPos ControlCount ControlKeyDown ControlKeyUp Controls ControlsAligned CreateBrush CreateDockManager CreateHandle CreateParams CreateParented CreateParentedControl CreateSubClass CreateWnd CustomAlignInsertBefore CustomAlignPosition DefaultHandler DefWndProc DesignerDeleting DestroyHandle DialogChar DisableAlign DoAddDockClient DoAdjustClientRectChange DoAlignChildControls DoAllAutoSize DoAutoSize DoChildSizingChange DockClientCount DockClients DockDrop DockManager DockOver DockSite DoConstraintsChange DoDockClientMsg DoDockOver DoDragMsg DoExit DoFlipChildren DoFloatMsg DoGetDockCaption DoKeyDownBeforeInterface DoKeyPress DoKeyUpBeforeInterface DoRemainingKeyDown DoRemainingKeyUp DoRemoveDockClient DoSendBoundsToInterface DoSendShowHideToInterface DoSetBounds DoubleBuffered DoUnDock DoUndockClientMsg DoUTF8KeyPress EnableAlign EndUpdateBounds EraseBackground FinalizeWnd FindChildControl FindNextControl FixDesignFontsPPIWithChildren FixupTabList FlipChildren FormEndUpdated GetAdjustedLogicalClientRect GetBorderStyle GetChildren GetChildrenRect GetClientOrigin GetClientRect GetControlIndex GetControlOrigin GetDeviceContext GetDockCaption GetEnumeratorControls GetEnumeratorControlsReverse GetMouseCapture GetParentHandle GetPreferredSizeClientFrame GetSiteInfo GetTabOrderList GetTextLen GetTopParentHandle Handle HandleAllocated HandleNeeded InitializeWnd InsertControl IntfGetDropFilesTarget IntfUTF8KeyPress Invalidate InvalidateBoundsRealized InvalidateClientRectCache InvalidatePreferredChildSizes IsClientHeightStored IsClientWidthStored IsControlMouseMsg IsFlipped IsResizing IsSpecialSubControl KeyDown KeyDownAfterInterface KeyDownBeforeInterface KeyPress KeyUp KeyUpAfterInterface KeyUpBeforeInterface LockRealizeBounds MainWndProc NotifyControls OnAlignInsertBefore OnAlignPosition OnDockDrop OnDockOver OnGetDockCaption OnGetSiteInfo OnUnDock PaintControls PaintHandler PaintTo ParentDoubleBuffered ParentFormHandleInitialized ParentHandlesAllocated ParentWindow PerformTab ReAlign RealizeBounds RealizeBoundsRecursive ReloadDockedControl RemoveControl RemoveFocus Repaint ScaleBy ScaleControls ScrollBy ScrollBy_WS SelectFirst SelectNext SendDialogChar SendMoveSizeMessages SetBorderStyle SetBounds SetChildZPosition SetControlIndex SetDockManager SetShape SetTempCursor ShowControl Showing TabOrder UnlockRealizeBounds Update UpdateControlState UpdateDockCaption UpdateShowing UseDockManager UTF8KeyPress VisibleDockClientCount WindowHandle WMChar WMContextMenu WMDestroy WMEnter WMEraseBkgnd WMExit WMKeyDown WMKeyUp WMKillFocus WMMove WMNotify WMSetFocus WMShowWindow WMSize WMSysChar WMSysKeyDown WMSysKeyUp WMWindowPosChanged WndProc WriteLayoutDebugReport WSSetText
From TControl (341)
AccessibleDescription AccessibleName AccessibleRole AccessibleValue Action ActionChange ActionLink ActiveDefaultControlChanged AddHandler AddHandlerOnBeforeDestruction AddHandlerOnChangeBounds AddHandlerOnEnabledChanged AddHandlerOnEnabledChanging AddHandlerOnKeyDown AddHandlerOnMouseWheel AddHandlerOnResize AddHandlerOnVisibleChanged AddHandlerOnVisibleChanging AdjustSize Align AnchorAsAlign AnchorClient AnchoredControlCount AnchoredControls AnchorHorizontalCenterTo AnchorParallel Anchors AnchorSame AnchorSide AnchorSideBottom AnchorSideChanged AnchorSideLeft AnchorSideRight AnchorSideTop AnchorToCompanion AnchorToNeighbour AnchorVerticalCenterTo AssignTo AutoSizing AutoSizingAll AutoSizingLockCount BaseBounds BaseParentClientSize BeforeDestruction BeforeDragStart BeginAutoDrag BeginAutoSizing BeginDrag BiDiMode BorderSpacing BoundsChanged BoundsRect BoundsRectForNewParent BringToFront CalculateDockSizes CanAutoSize Caption CaptureChanged CaptureMouseButtons ChangeBounds Changed CheckChildClassAllowed CheckNewParent CheckOnChangeBounds Click ClientHeight ClientOrigin ClientRect ClientToParent ClientToScreen ClientWidth CMChanged CMCursorChanged CMHintShow CMHitTest CMMouseEnter CMMouseLeave CMParentBiDiModeChanged CMParentFontChanged CMParentShowHintChanged CMSysFontChanged CMTextChanged CNPreferredSizeChanged ColorIsStored ConstrainedResize Constraints ControlFontClass ControlOrigin ControlState ControlStyle ControlToScreen CreateAccessibleObject CreateControlBorderSpacing CreateFloatingDockSite Cursor DblClick DefineProperties DesktopFont DisableAutoSizing DoAutoAdjustLayout DoBorderSpacingChange DoCallKeyEventHandler DoCallMouseWheelEventHandler DoCallNotifyHandler Dock Docked DockOrientation DockTrackNoTarget DoContextPopup DoDock DoEndDock DoEndDrag DoFixDesignFontPPI DoMouseDown DoMouseUp DoMouseWheel DoMouseWheelDown DoMouseWheelHorz DoMouseWheelLeft DoMouseWheelRight DoMouseWheelUp DoOnChangeBounds DoOnParentHandleDestruction DoOnResize DoOnShowHint DoScaleFontPPI DoStartDock DoStartDrag DragCanceled DragCursor DragDrop Dragging DragKind DragMode DragOver EditingDone EnableAutoSizing Enabled EnabledChanged EnabledChanging EndAutoSizing EndDrag ExecuteCancelAction ExecuteDefaultAction FindSubComponent FixDesignFontsPPI Floating FloatingDockSiteClass Font ForeignAnchorSideChanged FormIsUpdating GetAccessibleObject GetAction GetActionLinkClass GetAnchorsDependingOnParent GetCachedText GetCanvasScaleFactor GetChildAccessibleObjectAtPos GetClientScrollOffset GetColorResolvingParent GetCursor GetDefaultColor GetDefaultDockCaption GetDefaultHeight GetDefaultWidth GetDockEdge GetDragImages GetEnabled GetFloating GetFloatingDockSiteClass GetLogicalClientRect GetMousePosFromMessage GetPalette GetParentBackground GetParentComponent GetPopupMenu GetPreferredSize GetRGBColorResolvingParent GetScrolledClientRect GetSelectedChildAccessibleObject GetSidePosition GetTextBuf GetTopParent HandleObjectShouldBeVisible HasHelp HasParent Height HeightIsAnchored HelpContext HelpKeyword HelpType Hide Hint HostDockSite InitiateAction InvalidateControl InvalidatePreferredSize IsAParentAligning IsBorderSpacingInnerBorderStored IsCaptionStored IsControl IsControlVisible IsEnabled IsParentColor IsParentFont IsParentOf IsProcessingPaintMsg IsRightToLeft IsVisible Left LMCaptureChanged LoadedAll LRDockWidth ManualDock ManualFloat MouseCapture MouseDown MouseEnter MouseInClient MouseLeave MouseMove MouseUp Notification OnChangeBounds OnConstrainedResize OnEndDock OnMouseWheelHorz OnMouseWheelLeft OnMouseWheelRight OnQuadClick OnResize OnShowHint OnStartDock OnTripleClick Parent ParentBackground ParentBiDiMode ParentDestroyingHandle ParentFont ParentFontChanged ParentShowHint ParentToClient Perform PositionDockRect QuadClick ReadBounds ReadState Refresh RemoveAllHandlersOfObject RemoveHandler RemoveHandlerOnBeforeDestruction RemoveHandlerOnChangeBounds RemoveHandlerOnEnabledChanged RemoveHandlerOnEnabledChanging RemoveHandlerOnKeyDown RemoveHandlerOnMouseWheel RemoveHandlerOnResize RemoveHandlerOnVisibleChanged RemoveHandlerOnVisibleChanging ReplaceDockedControl RequestAlign Resize Scale96ToFont Scale96ToForm Scale96ToScreen ScaleConstraints ScaleDesignToForm ScaleFontsPPI ScaleFontTo96 ScaleFontToScreen ScaleFormTo96 ScaleFormToDesign ScaleScreenTo96 ScaleScreenToFont ScreenToClient ScreenToControl SendToBack SessionProperties SetAction SetAlign SetAnchors SetBiDiMode SetBoundsKeepBase SetDragMode SetEnabled SetHint SetInitialBounds SetName SetParent SetParentBackground SetParentBiDiMode SetParentComponent SetTextBuf SetVisible SetZOrder Show ShowHelp ShowHint TBDockHeight TextChanged Top TripleClick UndockHeight UndockWidth UpdateAnchorRules UpdateBaseBounds UpdateMouseCursor UpdateRolesForForm UseRightToLeftAlignment UseRightToLeftReading UseRightToLeftScrollBar Visible VisibleChanged VisibleChanging Width WidthIsAnchored WindowProc WMCancelMode WMLButtonDBLCLK WMLButtonDown WMLButtonQuadCLK WMLButtonTripleCLK WMLButtonUp WMMButtonDBLCLK WMMButtonDown WMMButtonQuadCLK WMMButtonTripleCLK WMMButtonUp WMMouseHWheel WMMouseMove WMMouseWheel WMRButtonDBLCLK WMRButtonDown WMRButtonQuadCLK WMRButtonTripleCLK WMRButtonUp WMXButtonDBLCLK WMXButtonDown WMXButtonQuadCLK WMXButtonTripleCLK WMXButtonUp
From TLCLComponent (6)
DecLCLRefCount GetWSComponentClass IncLCLRefCount LCLRefCount NewInstance WidgetSetClass
From TComponent (64)
_AddRef _Release CanObserve ChangeName ComObject ComponentCount ComponentIndex Components ComponentState ComponentStyle DesignInfo DestroyComponents Destroying ExecuteAction FindComponent FreeNotification FreeOnRelease GetChildOwner GetChildParent GetDeltaStreams GetEnumerator GetIDsOfNames GetNamePath GetObservers GetOwner GetTypeInfo GetTypeInfoCount iicrGetComponent InsertComponent Invoke IsImplementorOf Loading Name ObserverAdded Observers OnGetDeltaStreams Owner PaletteCreated QueryInterface ReadDeltaState ReadDeltaStream ReferenceInterface RemoveComponent RemoveFreeNotification RemoveFreeNotifications SafeCallException SetAncestor SetChildOrder SetDesigning SetDesignInstance SetInline SetSubComponent Tag ToString TToStringNameMode UpdateAction Updated UpdateRegistry Updating ValidateContainer ValidateInsert ValidateRename VCLComObject WriteState
From TPersistent (4)
Assign FPOAttachObserver FPODetachObserver FPONotifyObservers
From TObject (35)
AfterConstruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName QualifiedClassName StringMessageTable SystemHasExtendedRTTI UnitName
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
