Skip to main content
All docs
V26.1
  • TdxSplashFormBase.Text(string) Method

    Provides access to a Text/Label widget on the form.

    Declaration

    function Text(const AName: string = ''): TText;

    Parameters

    Name Type Description
    AName string

    Optional. Specifies the target Text/Label widget name.

    If you omit the AName parameter, the function returns the default/predefined Text/Label widget (if the form contains such a content item).

    Returns

    Type Description
    TdxSplashFormBase.TText

    Returns the Text/Label widget with the name passed as the AName parameter (or the default Text/Label widget if the optional parameter is omitted).

    If no widget is found, an exception occurs.

    Remarks

    TdxSplashFormBase.TText is a simple multi-line label you can use within a Splash or Wait Form layout.

    VCL Shared Libraries: Splash Form — A "Text" Widget Example

    Call the Text function to access a Text/Label widget and modify its settings.

    Note

    The target widget must be defined within the current form. Otherwise, a Text function call raises an exception.

    Design Splash Forms & Manage Widgets

    To add/remove individual widgets to/from a Splash or Wait Form, select the target form in the Application Settings dialog and click Customize… to display the Splash Form Designer dialog.

    VCL Shared Libraries: The "Splash Form Designer" Dialog

    Other Widget Access Methods

    Animation
    Provides access to an Animation/Activity Indicator widget on the form.
    GetItem
    Provides access to any widget on the form by type and name. Use the template parameter (T) to specify the target widget type.
    Image
    Provides access to an Image widget on the form.
    Progress
    Provides access to a Progress Bar widget on the form.
    See Also