Consultor Eletrônico



Kbase P103684: Error 4041, referring to a COMBO-BOX widget.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/10/2008
Status: Unverified

SYMPTOM(s):

Error 4041 viewing a frame

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

<widget id> is a combo-box widget

Error 4041 only appears the second time the frame is brought into view.

Frame was previously hidden by means of a HIDE statement.

Application sets the combo-box's INNER-LINES attribute dynamically.

TTY, ChUI, character client is used

CAUSE:

Setting the INNER-LINES attribute is what causes error 4041 upon re-viewing a frame.

FIX:

Do not set the INNER-LINES attribute dynamically, and use the INNER-LINES clause in the VIEW-AS COMBO-BOX phrase when creating the combo-box statically, that is: instead of the following:

DEFINE VARIABLE cbValue AS CHARACTER VIEW-AS COMBO-BOX ...
...
FORM cbValue WITH FRAME f.
...
ASSIGN cbValue:INNER-LINES = 4.

use the following:

DEFINE VARIABLE cbValue AS CHARACTER VIEW-AS COMBO-BOX INNER-LINES 4 ...
...
FORM cbValue WITH FRAME f.
...

The problem does not occur under GUI.