Vcl.StdCtrls.TButton Methods

From RAD Studio API Documentation
Jump to: navigation, search

InheritedProtected
_AddRefprotectedCalled when an application uses a component interface.
_ReleaseprotectedCalled when an application releases a component interface.
ActionChangeprotected
AddBiDiModeExStyleprotectedSets control's window style according to its bi-directional support.
AdjustClientRectprotectedProvides the interface that adjusts the ClientRect property for idiosyncrasies of the window.
AdjustSizeprotectedAdjusts the control's size according to its contents and constraints.
AfterConstructionpublicResponds after the last constructor has executed.
AlignControlsprotectedAligns any controls for which the control is the parent within a specified area of the control.
ArrangeControlprotectedAligns the given control with the specified alignment options.
AssignpublicCopies the contents of another similar object.
AssignToprotectedCopies the properties of the windowed control to another object.
AsyncScheduleprotected
BeforeDestructionpublicPerforms any necessary actions before the first destructor is called.
BeginAutoDragprotectedBegins automatic drag.
BeginDragpublicStarts the dragging of a control.
BeginInvokepublicPerforms an asynchronous call to the method specified by either AProc or AFunc.
BringToFrontpublicPuts the control in front of all other controls in its parent control.
BroadcastpublicSends a message to each of the child controls.
CalcCursorPosprotectedGives the coordinates of the cursor, with respect to the origin of the control.
CanAutoSizeprotectedIndicates how the control can be resized.
CanFocuspublicIndicates whether a control can receive focus.
CanObserveprotected
CanResizeprotectedIndicates how the control can respond to a resize attempt.
ChangedprotectedSends a CM_CHANGED message to the control.
ChangeNameprotectedSets the private, internal storage for the Name property to the string passed in NewName.
ChangeScaleprotectedResize and reposition children and self.
CheckDisposedprotected
ClassInfopublicReturns a pointer to the run-time type information (RTTI) table for the object type.
ClassNamepublicReturns a string indicating the type of the object instance (as opposed to the type of the variable passed as an argument).
ClassNameIspublicDetermines whether an object is of a specific type.
ClassParentpublicReturns the type of the immediate ancestor of a class.
ClassTypepublicReturns the class reference for the object's class.
CleanupInstancepublicPerforms finalization on long strings, variants, and interface variables within a class.
ClickpublicSimulates a mouse click, as if the user had clicked the button.
ClientToParentpublicTranslates client coordinates to parent coordinates.
ClientToScreenpublicTranslates a given point from client area coordinates to global screen coordinates.
ConstrainedResizeprotectedGenerates an OnConstrainedResize event.
ContainsControlpublicIndicates whether a specified control exists within the control.
ControlAtPospublicReturns the child control located at a specified position within the control.
ControlsAlignedprotectedControlsAligned automatically executes after a call to AlignControls.
Createpublic
CreateDockManagerprotectedCreates the dock manager for the control.
CreateHandleprotectedCreates underlying screen object.
CreateParamsprotected
CreateParentedpublicCreates and initializes a control as the child of a specified non-VCL container.
CreateParentedControlpublicCreates and initializes a control as the child of a specified non-VCL window.
CreateSubClassprotectedCreates a windowed control derived from an existing Windows window class.
CreateTouchManagerprotectedInstantiates a touch manager.
CreateWindowHandleprotectedCreates a Windows control to represent the control.
CreateWndprotected
CustomAlignInsertBeforeprotectedReturns placement order of custom-aligned child control.
CustomAlignPositionprotectedReturns aligned position of custom-aligned child control.
DblClickprotectedOnDblClick event dispatcher.
DefaultDockImageprotectedHandles the painting and erasing of a dock image.
DefaultHandlerpublicProvides message handling for all messages that the control does not fully process by itself.
DefaultScalingFlagsprotected
DefinePropertiesprotected
DesignWndProcprotectedProcesses the given message and returns some Boolean information based on the message's content.
Destroypublic
DestroyComponentspublicDestroys all owned components.
DestroyHandleprotectedDestroys the control's window without destroying the control.
DestroyingpublicIndicates that the component and its owned components are about to be destroyed.
DestroyWindowHandleprotectedDestroys the window created in the CreateWindowHandle method.
DestroyWndprotectedDestroys the control's window.
DisableAlignpublicDisables the realignment of child controls.
DispatchpublicCalls message-handling methods for the object, based on the contents of the Message parameter.
DisposeOfpublicDisposeOf forces the execution of the destructor code in an object.
DoAddDockClientprotectedPerforms actions when a control is docked to the windowed control.
DockpublicUsed internally to dock the control.
DockDroppublicGenerates an OnDockDrop event.
DockOverprotectedResponds when a docking client is dragged over the windowed control.
DockReplaceDockClientprotectedInvalidates the first dock site in the list of child controls.
DockTrackNoTargetprotectedHandles dragging of the control over an invalid docking target.
DoContextPopupprotectedIs an OnContextPopup event dispatcher.
DoDockprotectedDocking event dispatcher.
DoDockOverprotectedGenerates an OnDockOver event.
DoEndDockprotectedIs an OnEndDock event dispatcher.
DoEndDragprotectedIs an OnEndDrag event dispatcher.
DoEnterprotectedRespond to receiving input focus.
DoExitprotectedResponds to losing input focus.
DoFlipChildrenprotectedFlips the control's children.
DoGestureprotectedProcesses the unhandled gesturing events.
DoGetGestureOptionsprotectedReturns the interactive gestures and their options.
DoHandleStyleMessageprotected
DoKeyDownprotectedPerforms some preprocessing before generating an OnKeyDown event.
DoKeyPressprotectedPerforms some preprocessing before generating an OnKeyPress event.
DoKeyUpprotectedPerforms some preprocessing before generating an OnKeyUp event.
DoMouseWheelprotectedProcesses mouse wheel motion.
DoMouseWheelDownprotectedIs an OnMouseWheelDown event dispatcher.
DoMouseWheelUpprotectedIs an OnMouseWheelUp event dispatcher.
DoRemoveDockClientprotectedResponds when a control is undocked from the windowed control.
DoStartDockprotectedIs an OnStartDockevent dispatcher.
DoStartDragprotectedIs an OnStartDrag event dispatcher.
DoUnDockprotectedUndocks a control that is currently docked to the windowed control.
DragCanceledprotectedProvides the interface for a method that responds to the cancellation of a drag.
DragDroppublicIs an OnDragDrop event dispatcher.
DraggingpublicIndicates whether a control is being dragged.
DragOverprotectedIs an OnDragOver event dispatcher.
DrawDragDockImageprotectedDraws the dock image for the control.
DrawTextBiDiModeFlagspublicReturns the text flags that reflect the current setting of the BiDiMode property.
DrawTextBiDiModeFlagsReadingOnlypublicReturns the text flag to add that indicates whether the control's text should read from right to left.
EnableAlignpublicDecrements the reference count incremented by the DisableAlign method, eventually realigning the child controls.
EndDragpublicStops a control from being dragged any further.
EndFunctionInvokepublicBlocks the caller until the specified ASyncResult completes.
EndInvokepublicBlocks the caller until the specified ASyncResult completes.
EqualspublicChecks whether the current instance and the Obj parameter are equal.
EraseDragDockImageprotectedErases the dock image for the control.
ExecuteActionpublicExecutes an action.
FieldAddresspublicReturns the address of a published object field.
FindChildControlpublicReturns a child control given its name.
FindComponentpublicIndicates whether a given component is owned by the component.
FindNextControlprotectedReturns the control's next child in the tab order after the specified control.
FixupTabListprotectedSorts the child controls by their tab order.
FlipChildrenpublicReverses the positions of child controls.
FocusedpublicDetermines whether the control has input focus.
FreepublicDestroys an object and frees its associated memory, if necessary.
FreeInstancepublicDeallocates memory allocated by a previous call to the NewInstance method.
FreeNotificationpublicEnsures that AComponent is notified that the component is going to be destroyed.
FreeOnReleasepublicFrees the interface reference for components that were created from COM classes.
GetActionprotectedReturns the value of the Action property.
GetActionLinkClassprotected
GetCheckedprotectedReturns whether the button control is checked.
GetChildOwnerprotectedReturns the owner of a child component being read from a stream.
GetChildParentprotectedReturns the parent or, if there is no parent, returns the owner of a child component being read from a stream.
GetChildrenpublicCalls a specified method for each child of the control.
GetClientOriginprotectedReturns the value of the ClientOrigin property.
GetClientRectprotectedReturns the value of the ClientRect property.
GetControlExtentsprotectedReturns the smallest rectangle in which all the control's children fit.
GetControlsAlignmentpublicIndicates how text is aligned within the control.
GetCurrentPPIScreenprotected
GetDeltaStreamsprotected
GetDesignDpiprotected
GetDeviceContextprotectedProvides access to a device context for the control.
GetDisposedprotectedGetter for the Disposed property.
GetDockEdgeprotectedReturns the edge on which another control should be docked when it is dragged over the control.
GetDragImagesprotectedReturns the control's image list containing the image to be displayed while dragging.
GetDragModeprotectedReturns the value of the DragMode property.
GetEnabledprotectedReturns the value of the Enabled property.
GetEnumeratorpublicReturns a TComponent enumerator.
GetFloatingprotectedReturns the value of the Floating property.
GetFloatingDockSiteClassprotectedReturns the class used for the control when it is floating.
GetHashCodepublicReturns an integer containing the hash code.
GetIDsOfNamesprotectedMaps a single member and an optional set of argument names to a corresponding set of integer dispatch identifiers (dispIDs).
GetInterfacepublicRetrieves a specified interface.
GetInterfaceEntrypublicReturns the entry for a specific interface implemented in a class.
GetInterfaceTablepublicReturns a pointer to a structure containing all of the interfaces implemented by a given class.
GetNamePathpublicReturns a string used by the Object Inspector.
GetObserversprotectedGetter of Observers.
GetOwnerprotectedReturns the owner of a component.
GetPaletteprotectedReturns the handle to a palette for use by the control.
GetParentComponentpublicReturns the parent of the control.
GetParentCurrentDpiprotected
GetParentHandleprotectedReturns the window handle for the window of the control's parent.
GetPopupMenuprotectedReturns the pop-up menu associated with the control.
GetSiteInfoprotectedGenerates an OnGetSiteInfo event.
GetTabControlListpublicBuilds a list of owned controls.
GetTabOrderListpublicBuilds a list of controls in tab order.
GetTextBufpublicRetrieves the control's text, copies it into a buffer, and returns the number of characters copied.
GetTextLenpublicReturns the length of the control's text.
GetTopParentHandleprotectedReturns the window handle of the first window not associated with a VCL control that contains the windowed control.
GetTypeInfoprotectedRetrieves the type information for an object.
GetTypeInfoCountprotectedReturns the number of type information interfaces that an object provides (either 0 or 1).
HandleAllocatedpublicReports whether a screen object handle exists for the control.
HandleNeededpublicCreates a screen object for the control if it doesn't already exist.
HasParentpublicIndicates whether the control has a parent.
HidepublicMakes the control invisible.
InheritsFrompublicDetermines the relationship of two object types.
InitiateActionpublicCalls the action link's Update method if the control is associated with an action link.
InitInstancepublicInitializes a newly allocated object instance to all zeros and initializes the instance's virtual method table pointer.
InsertComponentpublicEstablishes the component as the owner of a specified component.
InsertControlpublicInserts a control into the Controls array property.
InstanceSizepublicReturns the size in bytes of each instance of the object type.
InvalidatepublicSchedules a control repaint.
InvalidateDockHostSiteprotectedInvalidates the first dock site that appears in the list of child controls.
InvokeprotectedProvides access to Automation properties and methods when the component wraps an Automation object.
InvokeAsyncCallsprotectedProcesses pending asynchronous method calls listed in FAsyncList.
IsControlActivateMsgprotectedIndicates whether a specified mouse activation message is directed to the given child control.
IsControlMouseMsgprotectedIndicates whether a specified mouse message is directed to one of the windowed control's child controls.
IsImplementorOfpublicIndicates whether the component implements a specified interface.
IsQualifyingSiteprotectedChecks whether the control is docked inside another control or has at least two docked controls.
IsRightToLeftpublicIndicates whether the control should be reversed right to left.
IsTouchPropertyStoredprotectedChecks whether the associated touch manager stored any of the given options.
KeyDownprotectedResponds to key press events.
KeyPressprotectedResponds to keyboard input.
KeyUpprotectedRespond to released key.
Loadedprotected
MainWndProcprotectedReceives Windows messages for the control.
ManualDockpublicDocks the control.
ManualFloatpublicUndocks the control.
MethodAddresspublicReturns the address of a class method by name.
MethodNamepublicReturns the name of a class method by address.
MouseActivateprotectedTriggers a TMouseActivateEvent event.
MouseDownprotectedOnMouseDown event dispatcher.
MouseMoveprotectedResponds to mouse moving over control area.
MouseUpprotectedIs an OnMouseUp event dispatcher.
MouseWheelHandlerpublicDispatches messages received from a mouse wheel.
NewInstancepublicAllocates memory for an instance of an object type and returns a pointer to that new instance.
Notificationprotected
NotifyControlsprotectedSends a message to all the child controls.
ObserverAddedprotected
operator ()publicC++ conversion of a TComponent into a System.Classes.IInterfaceComponentReference or a System.IInterface, depending on casting.
PaintControlsprotectedPaints each of the child controls in a windowed control using the specified device context.
PaintHandlerprotectedResponds to WM_PAINT messages.
PaintTopublicDraws the windowed control to a device context.
PaintWindowprotectedRenders the image of a windowed control.
PaletteChangedprotectedResponds to changes in the system's palette by realizing the control's palette and the palette for each child control.
PaletteCreatedprotectedResponds when the component is created from the component palette.
ParentToClientpublicTranslate parent coordinates to client coordinates.
PerformpublicResponds as if the control received a specified Windows message.
PositionDockRectprotectedPositions the docking rectangle according to the current drag-and-dock state.
PreProcessMessagepublicReturns False, no matter the value of Msg.
QualifiedClassNamepublicReturns the qualified name of the class.
QueryInterfaceprotectedReturns a reference to a specified interface if the current component supports that interface.
ReadStateprotectedPrepares the control for having its properties assigned values from a stream.
RealignpublicForces the control to realign children.
RecreateWndprotectedRecreate underlying Windows screen object.
ReferenceInterfacepublicEstablishes or removes internal links that cause this component to be notified when the implementer of a specified interface is destroyed.
RefreshpublicRepaints the control on the screen.
ReloadDockedControlprotectedReloads a docked control.
RemoveComponentpublicRemoves a specified component specified from the component's Components list.
RemoveControlpublicRemoves a specified control from the Controls array.
RemoveFreeNotificationpublicDisables the destruction notification that was enabled by FreeNotification.
RemoveFreeNotificationsprotectedNotifies all owned components of the owner component's imminent destruction.
RemoveWindowPropsprotectedRemoves the ControlAtom and WindowAtom properties of the control.
RepaintpublicRepaints the entire control.
ReplaceDockedControlpublicDocks the control in the place where another control is already docked.
RequestAlignprotected
ResetImeprotectedRestores the input method editor (IME) that was active when the application started.
ResetImeCompositionprotectedDirects the composition window of the input method editor (IME) to perform a specific action.
ResizeprotectedRespond to control resize.
SafeCallExceptionpublicHandles exceptions in methods declared using the safecall calling convention.
ScaleBypublicRescale control and its children.
ScaleConstraintsprotectedScales the values of the Constraints property to the given ratio.
ScaleControlsprotectedRescale child controls only.
ScaleControlsForDpiprotected
ScaleForPPIpublic
ScaleMarginsprotectedScales the values of the Margins property to the given ratio.
ScalePaddingprotectedScales the control padding to the given ratio.
ScreenToClientpublicConverts the screen coordinates of a specified point on the screen to client coordinates.
ScrollBypublicScroll control contents.
SelectFirstprotectedLocates first selectable child control.
SelectNextprotectedMoves the input focus from the current child control to the next one in the tab order.
SendCancelModeprotectedCancels the modal state of the control.
SendDockNotificationprotectedSends a Windows message to the control's host dock site.
SendToBackpublicPuts a windowed control behind all other windowed controls, or puts a non-windowed control behind all other non-windowed controls.
SetAncestorprotectedClears or sets csAncestor state in the component's ComponentState property.
SetAutoSizeprotectedSets the value of the AutoSize property.
SetBiDiModeprotectedSets the control's bidirectional mode.
SetBoundspublicSets the windowed control's boundary properties all at once.
SetButtonStyleprotectedSets the Style property for a button.
SetCheckedprotectedSets the Checked property.
SetChildOrderprotectedChanges the order in which the child component appears in the list of child components returned by the GetChildren method.
SetCustomHintprotectedSets the value of the CustomHint property.
SetDesigningprotectedEnsures that components inserted at design time have their design-mode flag set.
SetDesignInstanceprotectedEnsures that components inserted at design time have their design-mode flag set.
SetDesignVisiblepublic
SetDragModeprotectedSets the drag mode for the control.
SetEnabledprotectedSets the value of the Enabled property.
SetFocuspublicGives the input focus to the control.
SetImeprotectedActivates an input method editor (IME) using the values specified by the ImeMode and ImeName properties.
SetImeCompositionWindowprotectedSets the position and font of the composition window.
SetInlineprotectedSets the csInline bit of the component's ComponentState property.
SetNameprotectedSets the name of the control.
SetParentprotected
SetParentBackgroundprotectedSets the ParentBackground property.
SetParentBiDiModeprotectedSpecifies whether the control uses its parent's BiDiMode.
SetParentComponentpublicSets the parent for the control.
SetParentDoubleBufferedprotectedSets the ParentBackground property.
SetStyleElementsprotected
SetSubComponentpublicIdentifies whether the component is a subcomponent.
SetTextBufpublicSets the text of the control.
SetZOrderprotectedMoves the control to the top or bottom of the parent control's (or screen's) list of TWinControl controls.
ShowpublicMakes a control visible.
ShowControlprotectedEnsures that a specified child control is visible.
ToStringpublicReturns a string containing the class name.
UnitNamepublicReturns the name of the unit where the class is defined.
UnitScopepublicReturns the class's unit scope.
UpdatepublicForces the control to update.
UpdateActionpublicUpdates the state of an action.
UpdateBoundsprotectedUpdates the bounds of the control.
UpdateBoundsRectprotectedChanges the Top, Left, Width, and Height properties of the control, but does not update its screen image and bypasses all resize events.
UpdateControlOriginalParentSizeprotectedUpdates the original size of the parent control.
UpdateControlStatepublicRespond to state change.
UpdatedprotectedClears the csUpdating state in the component's ComponentState property when the component finishes updating.
UpdateExplicitBoundsprotectedAttempts to update the values of the control's explicit bounds to those of its current bounds.
UpdateImageListprotectedRebuilds the image list associated with the button.
UpdateImagesprotectedUpdates the image list associated with the button.
UpdateRecreatingFlagprotectedToggles the csRecreating flag in the ControlState property.
UpdateRegistryprotectedProvides the interface for a method that adds type library and version information to the Registry on components that implement COM interfaces.
UpdateStyleElementsprotected
UpdateTIPStatusprotected
UpdateUIStateprotectedUpdates form User Interface State as needed
UpdatingprotectedSets the csUpdating state in the component's ComponentState property.
UseRightToLeftAlignmentpublicSpecifies whether the control's alignment is in a right-to-left mode.
UseRightToLeftReadingpublicSpecifies whether the control is using a right-to-left reading order.
UseRightToLeftScrollBarpublicSpecifies whether the vertical scroll bar appears on the left side of the control.
ValidateContainerprotectedDetermines whether an object can be inserted into a container.
ValidateInsertprotectedProvides the interface for a method that validates a child component before it is inserted.
ValidateRenameprotectedEnsures that renaming an owned component does not create a name conflict.
VisibleChangingprotectedProvides the interface for a method that responds to changes in the control's visibility.
WndProcprotectedHandles Windows messages.
WriteStateprotectedWrites the state of the component.