Problem with ENTER key

This forum is for eXpress++ general support.
Post Reply
Message
Author
D. Schuster
Posts: 38
Joined: Mon Feb 15, 2010 4:01 am

Problem with ENTER key

#1 Post 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

User avatar
Tom
Posts: 1171
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: Problem with ENTER key

#2 Post 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?
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Problem with ENTER key

#3 Post 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
The eXpress train is coming - and it has more cars.

Post Reply