[Bug 1798] Keyboard focus to terminal, not the program

Wine Bugs wine-bugs at winehq.org
Sat May 5 16:54:37 CDT 2007


http://bugs.winehq.org/show_bug.cgi?id=1798





------- Additional Comments From bero at arklinux.org  2007-05-05 16:54 -------
An interesting tidbit:

I've talked the programmer of an application that is still affected by this 
problem into giving me his source code to play with.

Unfortunately, it is written in a rather obscure language (GFA-BASIC -- I've 
never seen that one running on anything but an Atari ST before), but it 
allowed me to trace the issue a bit more.

This code has the keyboard focus problem:

Global t$
OpenW #1,,,,,0
Repeat
  Sleep
  t$=InKey$
  If t$
    Print t$
  EndIf
Until t$ = "q"

This does not:

Global t$
OpenW #1,,,,,32
Repeat
  t$=InKey$
  If t$
    Print t$
  EndIf
Until t$ = "q"

The only difference is the last parameter of OpenW - window opening flags. 0 
is "no attribtues" -- no scroll bars, no title bar, nothing whatsoever.
32 is "only a close field" (still no title bar, so the close filed is not 
actually drawn or visible).

Unfortunately I have no way of tracing what GFA-BASIC does with those flags, 
but I guess it's a direct translation into the bitfields passed to window 
creation (I have no idea about Windoze APIs -- Linux purist ;) ).

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list