Consultor Eletrônico



Kbase P172759: How to launch a modal ABL Dialog
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   03/09/2010
Status: Unverified

GOAL:

How to launch a modal ABL Dialog

GOAL:

How to launch a .NET Dialog

GOAL:

How to call a .NET Dialog from an ABL application in a modal fashion

FACT(s) (Environment):

Windows
OpenEdge 10.2x

FIX:

The ABL Dialog you create when using the Visual Designer is simply a Progress.Windows.Form object and can be launched non-modally, using the Show() method, however if one wished to ensure that the dialog is Modal when it is displayed the following syntax should be used:

WAIT-FOR <obj_ref>:ShowDialog([obj_ref_parent]).

The optional parameter ([obj_ref_parent]) mentioned in the example above will parent the dialog to another form and, when displayed, center it on that form.