User Tools

Site Tools


api:dk11:delphi:fmx.gismodalform.tgis_modalform



TGIS_ModalForm class

DK for Delphi | FMX.GisModalForm.TGIS_ModalForm | Classes | Constructors | Fields | Methods | Properties

Helper form class that provides modal form emulation on mobile devices, presenting dialog box style UI instead of full screen forms.

Syntax

// Delphi
type
  TGIS_ModalForm = class( TForm )
  end;
// C++ Builder
class PASCALIMPLEMENTATION TGIS_ModalForm : public TForm
{
};

Inheritance

→ TForm

Constructors

Inherited Overrides Protected
Name Visibility Description
Create(TComponent) public Creates a modal form helper instance.
Create(TComponent; Boolean) public Creates a modal form helper instance with configurable sizing behavior.

Fields

Inherited Protected
Name Visibility Description
btnCancel protected Standard Cancel button.
btnHelp protected Standard Help button.
btnOk protected Standard OK button.
oMainForm protected Layout container that hosts the dialog content on the parent form.
pOnHelp protected Help event handler invoked when the standard Help button is clicked.

Methods

Inherited Overrides Protected
Name Visibility Description
btnCancelClick protected Handles the standard Cancel button action and sets ModalResult to mrCancel.
btnHelpClick protected Handles the standard Help button action and raises the help event.
btnOKClick protected Handles the standard OK button action and sets ModalResult to mrOK.
DoShow protected Called when the form is shown.
initButtons protected Create standard form buttons.
initControls protected Override this method to add controls to this form.
initForm protected Override this method to customize the dialog caption and size before it is shown.
KeyDown protected Handles key press processing for the modal form.
showForm protected Override this method to provide custom behavior when the form is shown.
ShowModalEx public Shows the form using modal-like behavior, emulating a dialog box on mobile devices.

Properties

Inherited Protected
Name Visibility Description
ClientHeight public Height of the form client area.
ClientWidth public Width of the form client area.
PPI public Form PPI.
SystemPPI public Form System PPI (unscaled).

2026/07/11 00:18

Page Tools