Re: Windows Programming Question...>


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Grant Foraker on March 24, 2006 at 10:53:54:

In Reply to: Re: Windows Programming Question...> posted by Barbara Brazil on March 24, 2006 at 09:04:52:

I have one DLL and ran into this problem.

The parent dialog had Brian's Focus stuff for its one text entry field. The ENTER'd program would not display its popup dialog. It was created but never made visible. I could use ESC to escape back to the parent.

Going step by step with Debugger, I realized that the Event Handler was being run an extra time with the control ID of the parent's text field. Since I had Focus logic in the popup, it was one event out of sync and the "make visible" never happened in "normal" mode. With Debugger, the timing or something was slightly differnet and I had a 50% success rate.

The only time it always worked sucessfully in "normal" mode was after power on or reboot .

I nulled out the focus stuff in the parent and the problem went away.

This focus stuff could be a topic for LV.


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):






[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]