CustomForm¶
Qualified name: delphifmx.CustomForm
- class CustomForm¶
Bases:
CommonCustomFormTCustomForm represents the base class from which you derive other windows such as dialog boxes and forms. Create a subclass derived from TCustomForm if you want to create new forms such as dialog boxes. A derived form can contain one or more FireMonkey objects, such as TLabel, TComboBox, and so on. Note that every descendant of TCustomForm is a 2D FireMonkey form or dialog box.
Methods
Ends updating all the child controls in this form.
Performs several initializations required by this form.
TCommonCustomForm.LoadProps() Load properties from a .pydfm file
TCustomForm.PaintTo(Canvas: Canvas) -> None Embarcadero Technologies does not currently have any additional information.
Recreates the canvas where the form renders itself.
Attributes
Specifies the action associated with the control.
ActionClientSpecifies whether the component object has an associated action.
ActiveSpecifies whether the form has focus.
Specifies the active control on the form.
BiDiModeIndicates the layout of this form when running under Middle Eastern versions of the operating system.
BorderEmbarcadero Technologies does not currently have any additional information.
BorderIconsSpecifies which icons appear on the title bar of the form.
BorderStyleSpecifies the appearance and behavior of the form border.
BoundsBounds of form - position and size.
BoundsFEmbarcadero Technologies does not currently have any additional information.
Provides access to the drawing area of the form.
CaptionSpecifies a text string that identifies the form to the user.
CapturedSpecifies the control that has captured the mouse.
ChildrenStores an array of children attached to this parent component.
ChildrenCountRead-only property that specifies the number of children in the children list.
ClassNameReturns the TObject.ClassName
ClientHeightSpecifies the height (in pixels) of the form's client area.
ClientWidthSpecifies the width (in pixels) of the form's client area.
ComObjectSpecifies the interface reference implemented by the component.
ComponentCountReturns the owned component count
ComponentIndexIndicates the position of the component in its owner's Components property array.
ComponentStateDescribes the current state of the component, indicating when a component needs to avoid certain actions.
ComponentStyleGoverns the behavior of the component.
ComponentsReturns an iterator over the owned components
ConstraintsEmbarcadero Technologies does not currently have any additional information.
CursorSpecifies the mouse cursor that will be used on this form.
DataStores a Tvalue, which is a data structure that can store different kinds of data types.
DesignInfoContains information used by the Form designer.
DesignerSpecifies the designer interface for the form.
Specifies the way the background on this form is filled.
FocusedSpecifies the control that has the focus set on it.
FormFactorwidth, height, orientations, and devices.
FormFamilyIs a string property that specifies the form family this form is part of.
FormStateIndicates transitional state information about the form.
FormStyleDetermines the form style.
FullScreenIndicates whether the form is in fullscreen mode.
HandleSpecifies the handle of this form.
HeightSpecifies the vertical size of the form (in pixels).
HoveredIdentifies the control over which the mouse pointer is hovering.
IndexSpecifies the index of the child object in the children array attached to this object.
LeftSpecifies the X coordinate of the upper-left corner of the form, relative to the screen.
ModalResultRepresents the return value of a form that is used as a modal dialog box.
NameSpecifies the name of the component as referenced in code.
ObserversIndicates the TObservers object added to the TComponent.
OriginalContainerSizeEmbarcadero Technologies does not currently have any additional information.
OwnerReturns the Component Owner
PaddingSpecifies the padding of the form.
Returns/Sets the Control Visibility
ParentFormSpecifies the parent form of this form.
PositionRepresents the size and placement of the form.
Embarcadero Technologies does not currently have any additional information.
RootSpecifies the root parent of this object.
SaveStateSpecifies the save state of the FireMonkey form.
ShowFullScreenIconIndicates whether the Mac fullscreen icon is visible.
ShowHintDetermines whether help hints are enabled or disabled for first level child controls in the form. For more information about the rules for enabling hints for a control, see Using Hints to Show Contextual Help in a FireMonkey Application. TCommonCustomForm.ShowHint is a Boolean property set as True by default. When you place a child control in the form, and set the TControl.Hint property, the hint is displayed because the TControl.ParentShowHint is True by default. If the TCommonCustomForm.ShowHint property of the form is set to False, the hint is not displayed in the child control. To show the hint for a control, even when the TCommonCustomForm.ShowHint property of the form is set to False, set TControl.ShowHint for the control to True.
StoredSpecifies whether this object is stored in the .XFM file.
StyleBookSpecifies the style book for this form.
Specifies the name of the style to look up and apply to this form.
StyleNameSpecifies the style name for this FMX component.
SystemStatusBarSystem status bar settings on mobile platforms.
TagStores a NativeInt integral value as a part of a component.
TagFloatCustom property that stores any floating-point value.
TagObjectCustom property that stores any object value.
TagStringCustom property that stores any string value.
TopSpecifies the Y coordinate of the upper-left corner of the form, relative to the screen.
TouchEmbarcadero Technologies does not currently have any additional information.
TransparencyIndicates whether the form is transparent or not.
VCLComObjectRepresents information used internally by components that support COM.
VisibleIndicates whether the form is visible.
WidthSpecifies the horizontal size of the form (in pixels).
WindowStateRepresents how the form appears on the screen.
WindowStyleEmbarcadero Technologies does not currently have any additional information.
- Action¶
Specifies the action associated with the control. Action allows an application to centralize the response to user commands. When a control is associated with an action, the action determines the appropriate properties and events of the control (such as whether the control is enabled or how it responds to an OnClick event). If an object of the descendant from the TFmxObject class does not support actions, and when this object tries to assign a value to the Action property, the setter method for Action calls GetActionLinkClass that should return nil. In this case, attempting to set a value to the Action property raises the following exception:
StrEActionNoSuported = ‘Class %s does not support the action’
- Type:
- ActiveControl¶
Specifies the active control on the form. Use ActiveControl to get or set the active control (having the focus) on the form. Only one control can have the focus at a given time, in an application. If the form does not have the focus, ActiveControl is the control, on the form, that receives the focus when the form itself receives the focus.
- Type:
- Canvas¶
Provides access to the drawing area of the form. Use Canvas to draw directly on the client area of the form.
- Type:
Canvas
- EndUpdate()¶
Ends updating all the child controls in this form. FMX.Forms.TCustomForm.EndUpdate inherits from FMX.Forms.TCommonCustomForm.EndUpdate. All content below this line refers to FMX.Forms.TCommonCustomForm.EndUpdate. Ends updating all the child controls in this form. EndUpdate ends updating all the child controls placed on this form, finalizing any updates you might have performed on the form or on multiple children. EndUpdate signals the end of an update operation and must be preceded by BeginUpdate and by the updates themselves.
- Fill¶
Specifies the way the background on this form is filled. Use Fill to get or set the brush that defines the way the background of this form is painted (gradient, solid, and so on).
Tip: Using a brush for Fill overrides the functionality of the Transparency property.
- Type:
Brush
- InitializeNewForm()¶
Performs several initializations required by this form. FMX.Forms.TCustomForm.InitializeNewForm inherits from FMX.Forms.TCommonCustomForm.InitializeNewForm. All content below this line refers to FMX.Forms.TCommonCustomForm.InitializeNewForm. Performs several initializations required by this form. These initializations include bounds, width and height, border icons, border style, and client size for the form. InitializeNewForm is used by the form constructors.
- LoadProps()¶
Load properties from a .pydfm file
- PaintTo(Canvas: Canvas) None¶
Embarcadero Technologies does not currently have any additional information.
- Parent¶
Returns/Sets the Control Visibility
- Quality¶
Embarcadero Technologies does not currently have any additional information.
- Type:
CanvasQuality
- RecreateResources()¶
Recreates the canvas where the form renders itself.
- StyleLookup¶
Specifies the name of the style to look up and apply to this form. The FireMonkey Component Design help topic shows, among other useful things related to component designing, how to apply a style to a TPanel component.
- Type:
str