nanogui: Thread: GrGetFocus only if keyboard is available?


[<<] [<] Page 1 of 1 [>] [>>]
Subject: GrGetFocus only if keyboard is available?
From: Olaf Winne ####@####.####
Date: 26 Nov 2001 11:59:47 -0000
Message-Id: <01112612595200.04036@o6v9n4>

Hi again,

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?

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

Thank you,
Olaf
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: ####@####.####
: 

[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.