Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / 2 Questions on Input, and the Window...

Author
Message
Vesper103
16
Years of Service
User Offline
Joined: 21st Feb 2008
Location: Beloit WI
Posted: 26th May 2008 04:43
My Question on input, is how would i get a keypress if the program is not active? (i.e. Its minimized or behind other windows) and 2.) is there a way to make part of the window transparent?

Your signature has been erased by a mod - please reduce it to 600x120
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 26th May 2008 06:32
I doubt that there's a direct way to do this. Keyboard input is usually directed to whatever program has focus. Otherwise you'd be stealing input from the program that does have focus. You might be able to hook into the input to intercept it before the entire keyboard input then let it pass on to the program that needs it but that's rather involved and doesn't involve and of the GDK functionality. It could also be risky if something screwed up in your program and it didn't get passed on.

Lilith, Night Butterfly
I'm not a programmer but I play one in the office

Login to post a reply

Server time is: 2024-11-20 11:27:02
Your offset time is: 2024-11-20 11:27:02