Consultor Eletrônico



Kbase P170446: Toolbar ToolClick still fires on form when ShowDialog() was used to open a modal dialog
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   8/27/2010
Status: Unverified

SYMPTOM(s):

Toolbar ToolClick still fires on form when ShowDialog() was used to open a modal dialog

UltraToolbar accelerators accessible in form when Dialog is shown over it

FACT(s) (Environment):

Windows
OpenEdge 10.2B

CAUSE:

Bug# OE00199930

CAUSE:

This is caused by the invisible window that is manufactured by the AVM for managing the zorder of ABL Windows, ABL Forms and .NET Dialogs

FIX:

To work around this behavior use one of the following approaches:

1) Start your application with the -nozgrouping startup parameter.
This may have negative effects if your application is sensitive to FOCUS, as ABL Windows will be treated as a separate application group than any .NET type form and Windows may take over the grouping of the forms/windows

2) Just prior to launching the dialog, set the form's Enabled property to FALSE then reset it to TRUE when the dialog is destroyed:
e.g.
THIS-OBJECT:Enabled = FALSE.
WAIT-FOR oModalForm:ShowDialog().
THIS-OBJECT:Enabled = TRUE.