Skip to main contentSkip to search
Powered by Zoomin Software. For more details please contactZoomin
Progress DocumentationProgress Documentation
Progress Documentation
  • Home
  • Home
  • EnglishČeštinaDeutsch (Germany)Español (Spain)ФранцузскийItaliano (Italy)Português (Brasil)日本語Русский (Russia)中文 (简体) (China)中文 (繁體, 台灣) (Taiwan)ar-AR
  • Login

Introduction to Using .NET Classes in ABL Applications

Modal dialogs

Save PDF
Save selected topicSave selected topic and subtopicsSave all topics
Share
Share to emailCopy topic URL
Print
Table of Contents
  • Object-oriented programming in ABL
    • Classes
      • Data members
      • Properties
      • Methods
      • Class events
      • Constructor
      • Destructor
      • Inheritance
    • Interfaces
    • Essential ABL elements
  • .NET environment
    • Tools
  • Basic types of forms and application design
    • What is a form?
      • Main form
      • MDI and MDI child forms
      • Multiple, non-modal forms
      • Dialog forms
      • Create and initialize forms
    • Use the WAIT-FOR statement
      • Wait on a main or MDI form
      • Wait on multiple, non-modal forms
      • Modal dialogs
    • Form inheritance
    • Form and window coexistence
    • Embed an ABL window in a .NET form
  • Controls in forms
    • Control sources
      • .NET Windows Forms UI controls
        • Menus and toolbars
        • Controls
        • Layout
        • Data viewing
        • Components
        • Common dialog boxes
      • OpenEdge controls
      • OpenEdge Ultra Controls for .NET
      • Third-party controls
      • ABL user controls
      • ABL-derived controls
    • Work with .NET forms and controls
  • Events
    • .NET event loop
    • Event handlers
  • Data binding
    • Bind to a .NET control
    • Bind to a data source
      • Buffer
      • Query
      • ProDataSet
    • Define ProBindingSource tables and fields
  • Service layers
    • Business entities
    • Service adapters and service interfaces
Table of Contents

Modal dialogs

Save PDF
Save selected topicSave selected topic and subtopicsSave all topics
Share
Share to emailCopy topic URL
Print
  • Last Updated: May 30, 2019
  • 1 minute read
    • OpenEdge
    • Version 13.0
    • Documentation

The ShowDialog( ) method on the form is used in the WAIT-FOR statement to display and wait for a modal .NET dialog box. If you display the modal dialog box within an existing .NET event loop, the nested WAIT-FOR must be satisfied before returning to the outer WAIT-FOR. The application ends the WAIT-FOR by calling the Close( ) method on the modal form object.

In this example, the rDateForm form is created and displayed as a modal dialog using the ShowDialog( ) method:

rDateForm = NEW Progress.Examples.MyDialog.
...
WAIT-FOR rDateForm:ShowDialog( ).

This is an example of the WAIT-FOR statement for a modal dialog in which the parent form is specified:

WAIT-FOR FormObjectRef:ShowDialog( ParentFormObjectRef ).

ParentFormObjectRef is an object reference to the dialog's parent form. This version of the ShowDialog( ) method allows the dialog to display centered over the parent form.

TitleResults for “How to create a CRG?”Also Available inAlert