Page 1 of 1

Problem with ENTER key

Posted: Thu Sep 16, 2010 6:15 am
by D. Schuster
Hello,
I have created a very complex window with a large number of SAY and GET fields,
the GET fields with COMBO, LISTBOX, GOTFOCUS, LOSTFOCUS, HIDE etc, and DCREAD GUI.
After some addtions now I have a very unfriendly effect.
If at a GET field the ENTER key is pressed, most of the GET fields are blocked, no input
is possible.
If I work with the mouse only everything works well !
The stepwise debugging hasn't help me.
Has anybody an idea, what I can do to solve this problem?
Dieter

Re: Problem with ENTER key

Posted: Thu Sep 16, 2010 6:56 am
by Tom
Seems you have an endless recursion somehwere in there. Two codeblocks (or even more) setting the app focus from "gotfocus" and "lostfocus" (or "keyblock") or vice versa. Or doing something like this. Can you try to extract some code to show the problem? Do you use the NOSUPERVISE clause of DCGET OPTIONS? Which version of eXpress++ do you use?

Re: Problem with ENTER key

Posted: Thu Sep 16, 2010 8:01 am
by rdonnay
To determine if this is true, you can put some debugging in a customer handler:

Code: Select all

DCREAD GUI .. HANDLER myHandler


STATIC FUNCTION myHandler( nEvent, mp1, mp2, oXbp, oDlg, GetList )

WTF DC_AppEventDefine(nEvent), oXbp

RETURN DCGUI_NONE