Consultor Eletrônico



Kbase P108905: Error 4708 trying to use suppressed windows within a dialog box.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/09/2005
Status: Unverified

FACT(s) (Environment):

Progress 9.x
OpenEdge 10.x

SYMPTOM(s):

AppBuilder generated code

Running procedure for suppressed window within a dialog box

Setting PARENT attribute of default frame in window procedure's main block

Window contains an OCX

**Unable to set attribute PARENT for FRAME DEFAULT-FRAME (4078).

**Unable to set attribute <attribute> for <widget id>. (4078)

CAUSE:

Because of the OCX, the appbuilder inserts a CREATE CONTROL-FRAME statement before the main block section of code.
This CREATE CONTROL-FRAME statement forces the window's frame to be realized, at which point the PARENT attribute becomes read-only. Therefore resetting the parent in the main block will fail.

FIX:

Open the .w file for the suppressed window in Procedure Editor.
Move the code that sets the frame:PARENT attribute before the CREATE CONTROL-FRAME statement.