nanogui: GrGetFocus only if keyboard is available?


Previous by date: 7 Dec 2001 18:23:04 -0000 Re: GdDrawImage and 16bpp, Greg Haerr
Next by date: 7 Dec 2001 18:23:04 -0000 Microwindows installation under DOS/DJGPP, Roger Young
Previous in thread: 7 Dec 2001 18:23:04 -0000 GrGetFocus only if keyboard is available?, Olaf Winne
Next in thread:

Subject: Re: [nanogui] GrGetFocus only if keyboard is available?
From: "Greg Haerr" ####@####.####
Date: 7 Dec 2001 18:23:04 -0000
Message-Id: <044501c17f4b$ebf596e0$3aba46a6@xmission.com>

: I tried to get the wid of the actual displayed window with GrGetFocus(). 
: Without success. Is that, because I switched the keyboard device (in config) 
: to No Keyboard? How can I get the actual displayed window ID without setting 
: a keybord?

You can't use GrGetFocus() to get the ID of any displayed window, 
since there may be many windows displayed.  Perhaps we need to
have a routine to get the ID of the "active" window, but this is a little
more complicated.  You can use GrSetFocus() even if you don't have
a keyboard, but the focus only applies to a single window, not the
window's parents, or frame.

: 
: Besides, if I use a PC Keyboerd, which one do I have to choose? It isn't the 
: scankeyboard, isn't it?

Normally, the TTYSCAN keyboard should be used for Linux, since it
returns scancodes.  It will work with any keyboard that Linux allows
for its internal tty driver.

Regards,

Greg




: 
: Thank you,
: Olaf
: 
: ---------------------------------------------------------------------
: To unsubscribe, e-mail: ####@####.####
: For additional commands, e-mail: ####@####.####
: 


Previous by date: 7 Dec 2001 18:23:04 -0000 Re: GdDrawImage and 16bpp, Greg Haerr
Next by date: 7 Dec 2001 18:23:04 -0000 Microwindows installation under DOS/DJGPP, Roger Young
Previous in thread: 7 Dec 2001 18:23:04 -0000 GrGetFocus only if keyboard is available?, Olaf Winne
Next in thread:


Powered by ezmlm-browse 0.20.