Consultor Eletrônico



Kbase P15717: Using SmartObjects, recreating a dynamic popup menu but the
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   28/01/2003
Status: Unverified

FACT(s) (Environment):

Progress 9.1D

SYMPTOM(s):

Using SmartObjects (ADM2)

Attached a dynamic popup menu to a button

After closing child SmartFrames the popup menu no longer comes up

CAUSE:

When a child SmartFrame was in the process of being destroyed it ran an internal procedure back in the SmartWindow to rebuild the dynamic popup menu and reattach it to the button. The internal procedure was creating the dynamic widgets (by default) in the widget-pool of the SmartFrame (that was the active widget-pool) and then the destruction of the SmartFrame was done. This caused the dynamic menu widgets that were just created to be destroyed.

FIX:

Create a named widget-pool in the SmartWindow to hold the dynamic widgets and modify the source code to explicitly create the dynamic widgets in the named widget-pool.