[graphic-forms-devel] Dialog focus
Jack Unrue
jdunrue at gmail.com
Sat Sep 8 21:40:06 UTC 2007
On 9/7/07, Ken Perry <kperry at blinksoft.com> wrote:
>
> I didn't even realize it didn't keep the correct focus when the application
> loses focus till you just wrote this. I can tell you this is not how Win32
> normally works. If you would like I can send you both an EXE and an ASM
> win32 program that does the same thing as my lisp program which I am writing
> in your graphic-forms library. That way you could test how a pure win32
> application works against your library if you like. If you want I can send
> my newest lisp file, my ASM file, and the EXE of the ASM file. If you don't
> trust that I am sending you just the simple program and I might not in your
> place I can also zip up the GOASM compiler and linker in the directory so
> you can make the ASM file for safety sake. I have a simple bat file that
> makes it so you don't have to fight learning to use the asm compiler and
> linker if you haven't used GoAsm before.
Well, I can certainly whip up a C-based Win32 app and explore this
further, I just haven't done that yet.
> As for fixing it you could make a global *current-control-focused* or
> something like it so that when it returns and the activated event is called
> you can reset the focus.
I suspect the fix involves some additional window style or event handling
behavior that is missing. I'll do some research, as mentioned above.
Manually tracking focused controls (remember, an application may have
multiple windows), whether that's done by the application or by
Graphic-Forms, strikes me as the wrong solution.
> Well let me know if you would like to see the comparison and I will zip it
> all up.
I don't think that will be necessary, but if I change my mind, I'll let you
know. Thanks!
--
Jack Unrue
More information about the Graphic-forms-devel
mailing list