Sign in Join
FPDoc Onlineexperiment

TCustomAbstractGroupedEdit class

In unit GroupedEdit

Implements a grouped edit control.

Declaration

pascal
TCustomAbstractGroupedEdit = class(TCustomControl)

Inheritance

  1. TCustomAbstractGroupedEdit
  2. TCustomControl
  3. TWinControl
  4. TControl
  5. TLCLComponent
  6. TComponent
  7. TPersistent
  8. 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

AutoSelectprotectedIndicates if the text in the control is automatically selected when focus is received.
AutoSelectedprotectedIndicates if the current text selection was performed automatically.
BuddyprotectedRepresents the associated TControl instance in the grouped edit control.
BuddyCaptionprotectedCaption used for the Buddy control.
BuddyCursorprotectedCursor shape used for the Buddy control.
BuddyHintprotectedHint displayed for the Buddy control.
BuddyWidthprotectedWidth for the Buddy control.
DirectInputprotectedIndicates if text can be entered directly into the BaseEditor control.
BaseEditorprotectedRepresents the control used as the editor for the value in the grouped edit control.
EditMaskprotectedContains the masking characters used in the editor for the control.
EditTextprotectedContains the value entered in the control including masking characters.
FocusOnBuddyClickprotectedDetermines if the control receives focus when the Buddy control is clicked.
IsMaskedprotectedIndicates if an edit mask is in use in the BaseEditor in the grouped edit control.
LayoutprotectedControls the alignment of the edit control and its associate.
SpacingprotectedSpacing used between the BaseEditor and the Buddy controls.
AutosizepublicAllows automatic adjustment of the size for the control, according to its content.
AutoSizeHeightIsEditHeightpublicIndicates if the height for BaseEditor is used as the height for the control when auto-sizing.
AlignmentpublicIndicates the text alignment used for the control value.
CanUndopublicIndicates if the Undo method can used to revert changes to the control value.
CaretPospublicPosition of the editing caret in the control.
CharCasepublicControls the case conversion used for a value entered in the control.
ColorpublicBackground color for the BaseEditor on the control.
ParentColorpublicIndicates if the color in the Parent control is used.
EchoModepublicIndicates if characters entered in the control value are hidden, displayed, or obscured.
HideSelectionpublicHides the current text selection when the control loses focus.
MaxLengthpublicMaximum number of characters allowed in the editor for the control.
ModifiedpublicIndicates if the value for the control has been changed by the user.
NumbersOnlypublicIndicates if the edit control accepts numeric values only.
PasswordCharpublicContains the character displayed to obfuscate the text on the control when a value is entered or displayed.
PopupMenupublicPopupMenu for the control.
ReadOnlypublicIndicates whether the value for the control can be changed.
SelLengthpublicNumber of characters in the current selection for the control.
SelStartpublicStarting position for the current selection in the control.
SelTextpublicReturns the selected text in the control.
TabStoppublicIndicates if the control can be reached using Tab navigation.
TextpublicString with the text or caption for the control.
TextHintpublicDefault hint text shown when the Text property is empty for the grouped edit control.

Methods

WSRegisterClassprotectedRegisters the widget set class used to create new instances of the grouped edit.
CalculatePreferredSizeprotectedCalculates the preferred size for the control with optional space reserved by theme services.
CreateBuddyprotectedCreates the TControl instance assigned to the Buddy property.
CreateEditorprotectedCreates the TGEEdit instance used in the BaseEditor property.
FocusAndMaybeSelectAllprotectedGives focus to the control, and optionally selects text in its editor.
GetEditorClassTypeprotectedGets the class reference used to create the BaseEditor for the control.
GetBuddyClassTypeprotectedGets the class reference used to create the Buddy for the control.
GetControlClassDefaultSizeprotectedGets the default size for new instances of the control.
SetDirectInputprotectedSets the value for the DirectInput property.
RealGetTextprotectedGets the value for the text in the control.
RealSetTextprotectedSets the value for the text in the control.
GetEditPopupMenuprotectedGets the popup menu for the BaseEditor in the control.
GetBuddyCaptionprotectedGets the Caption used in the Buddy property.
GetBuddyCursorprotectedGets the value for the BuddyCursor property.
GetBuddyHintprotectedGets the value for the BuddyHint property.
GetBuddyWidthprotectedGets the value for the BuddyWidth property.
GetBuddyVisibleprotectedGets the Visible property for the Buddy control.
SetBuddyCaptionprotectedSets the Caption used in the Buddy property.
SetBuddyCursorprotectedSets the cursor shape used in the Buddy property.
SetBuddyHintprotectedSets the Hint displayed for the Buddy property.
SetBuddyWidthprotectedSets the Width used for the Buddy property.
SetBuddyVisibleprotectedSets the value for the Visible property in the Buddy control.
BuddyClickprotectedPerforms actions needed when the Buddy control is clicked.
DoEnterprotectedPerforms actions needed when the control is entered.
EditChangeprotectedSignals the OnEditChange event handler, when assigned.
EditClickprotectedSignals the internal OnEditClick event handler, when assigned.
EditContextPopupprotectedSignals the OnContextPopup event handler (when assigned).
EditDblClickprotectedSignals the OnDblClick event handler (when assigned).
EditDragDropprotectedSignals the OnDragDrop event handler (when assigned).
EditDragOverprotectedSignals the OnDragOver event handler (when assigned).
EditEditingDoneprotectedSignals the OnEditEditingDone event handler (when assigned).
EditEndDragprotectedSignals the OnEditEndDrag event handler (when assigned).
EditEnterprotectedSignals the OnEnter event handler (when assigned).
EditExitprotectedSignals the OnExit event handler (when assigned).
EditKeyDownprotectedSignals the OnKeyDown event handler (when assigned).
EditKeyPressprotectedSignals the OnKeyPress event handler (when assigned).
EditKeyUpprotectedSignals the OnKeyUp event handler (when assigned).
EditMouseDownprotectedSignals the OnMouseDown event handler (when assigned).
EditMouseUpprotectedSignals the OnMouseUp event handler (when assigned).
EditMouseEnterprotectedSignals the OnMouseEnter event handler (when assigned).
EditMouseLeaveprotectedSignals the OnMouseLeave event handler (when assigned).
EditMouseMoveprotectedSignals the OnMouseMove event handler (when assigned).
EditMouseWheelprotectedSignals the OnMouseWheel event handler (when assigned).
EditMouseWheelUpprotectedSignals the OnMouseWheelUp event handler (when assigned).
EditMouseWheelDownprotectedSignals the OnMouseWheelDown event handler (when assigned).
EditUtf8KeyPressprotectedSignals the OnUtf8KeyPress event handler (when assigned).
EditStartDragprotectedSignals the OnStartDrag event handler (when assigned).
UpdateSpacingprotectedUpdates border spacing in BaseEditor for the Layout and visibility of the Buddy control.
CheckCursorprotectedForwards a CheckCursor method call to the BaseEditor for the control.
CMParentColorChangedprotectedHandles the control message received when the ParentColor property is changed.
EditCanModifyprotectedIndicates if BaseEditor can be modified.
GetSelprotectedGets the offsets for the current text selection in the control.
GetSpacingprotectedGets the value for the Spacing property.
SetSelprotectedSets the current text selection in the control.
LoadedprotectedPerforms actions when the control has finished loading in the LCL streaming mechanism.
ResetprotectedForwards a Reset method call to the BaseEditor in the control.
SetAutoSizeprotectedSets the value for the AutoSize property.
SetColorprotectedSets the value for the Color property.
SetCursorprotectedSets the value for the Cursor property.
ShouldAutoAdjustprotectedIndicates if the height or width is affected during auto-adjust.
CreatepublicConstructor for the class instance.
DestroypublicDestructor for the class instance.
SetFocuspublicSets the focus to the editor in the control.
FocusedpublicPerforms actions needed when the control receives focus.
ClearpublicRemoves the text content in the control.
ClearSelectionpublicClears the content for the current selection in the control.
CopyToClipboardpublicCopies the content in the control to the clipboard.
CutToClipboardpublicCopies content in the control to the clipboard, and removes it from the control.
PasteFromClipboardpublicPastes content into the control from the clipboard.
SelectAllpublicSelects all of the content in the control.
UndopublicReverses the last edit performed on the control value.
ValidateEditpublicPerforms actions needed to validate the value for the control.

Events

OnBuddyClickprotectedEvent handler signalled when the Buddy control is clicked.
OnChangepublicEvent handler signalled when the value for the control is changed.
OnClickpublicNotification handler for mouse clicks.
OnContextPopuppublicInvoked when a context-sensitive pop-up menu is requested.
OnDblClickpublicEvent handler signalled when a mouse double click occurs in the control.
OnDragDroppublicEvent handler signalled when an object is dropped onto the control.
OnDragOverpublicEvent handler signalled when a control is dragged over the control instance.
OnEditingDonepublicEvent handler signalled when editing is completed for the control.
OnEndDragpublicEvent handler signalled for the end of a drag-drop operation.
OnEnterpublicEvent handler signalled when the control receives focus.
OnExitpublicEvent handler signalled when the control loses focus.
OnMouseDownpublicEvent handler signalled when a mouse down event is handled for the control.
OnKeyPresspublicEvent handler signalled for character data entered by the user.
OnKeyDownpublicEvent handler signalled for key down keyboard events.
OnKeyUppublicEvent handler signalled when a key up event has occurred for the control.
OnMouseEnterpublicEvent handler signalled when the mouse pointer has entered the control.
OnMouseLeavepublicEvent handler signalled when the mouse pointer has left the control.
OnMouseMovepublicEvent handler signalled when the mouse pointer is moved in the control.
OnMouseWheelpublicEvent handler for mouse wheel turned.
OnMouseWheelUppublicEvent handler signalled for an upward movement of the mouse wheel.
OnMouseWheelDownpublicEvent handler signalled for a downward movement of the mouse wheel.
OnMouseUppublicEvent handler signalled when a mouse up event is handled for the control.
OnStartDragpublicEvent handler signalled for the start of a dragging operation.
OnUtf8KeyPresspublicEvent 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.