Consultor Eletrônico



Kbase P96488: Dyn: **EDITOR edMessageSummary does not fit in parent DIALOG-BOX gDialog. (6491)
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   20/10/2004
Status: Unverified

FACT(s) (Environment):

Dynamics 2.1A
OpenEdge 10.0B

SYMPTOM(s):

**<widget id> does not fit in parent <parent widget id>. (6491)

**EDITOR edMessageSummary does not fit in parent DIALOG-BOX gDialog. (6491)

Dynamics is translating a message that comes with afmessaged functionality

Stack trace reads:
af/cod2/afmessaged.w (D:\rsmxsand\custom\af\cod2\afmessaged.r) at line 4813
initializeObject af/cod2/afmessaged.w (D:\rsmxsand\custom\af\cod2\afmessaged.r) at line 5723
initializeObject adm2/containr.p (D:\progress\dyn21a\gui\adm2\containr.r) at line 9033
initializeObject adm2/visual.p (D:\rsmxsand\custom\adm2\visual.r) at line 3885
widgetWalk D:\rsmxsand\custom\af\sup2\afsesclntp.r (D:\rsmxsand\custom\af\sup2\afsesclntp.r) at line 15449
--> translateWidgets D:\rsmxsand\custom\af\sup2\afsesclntp.r (D:\rsmxsand\custom\af\sup2\afsesclntp.r) at line 14045

Dynamics 2.1A03

CAUSE:

Known issue in 2.1A03, should also occur in 10.0B, development aware. Using the debugger shows that the error occurs at the end of translateWidget in af/app/afsesmngrp.i (included file for the session manager) with the following code:
<pre>IF lFrameVisisble THEN
ASSIGN phFrame:HIDDEN = NO.</pre>
This makes the frame visible and the warning comes at this time. It seems that the EDITOR edMessageSummary does indeed not fit in the dialog-box at that time, however some resizing code is run a bit later so the original resizing problem is solved.

FIX:

Modify translateWidget in af/app/afsesmngrp.i by adding a NO-ERROR in the offending assign.
<pre>IF lFrameVisisble THEN
ASSIGN phFrame:HIDDEN = NO NO-ERROR.</pre>
This prevents from getting warning 6491.
Note it is necessary to recompile the server side and the client side of the session manager with:
<pre>COMPILE af\sup2\afsesclntp.p SAVE.
COMPILE af\app\afsessrvrp.p SAVE.</pre>
Note also that the original source code is located in the src branch and that the new .R shall be located in the gui anf tty branches. One may want to keep the original code and just put a copy in an overidde of icf/af/sup2 and icf/af/app (or dynamics/af/sup2 and dynamics/af/app for OpenEdge 10) that would appear first in the PROPATH.