Disabling alt-tab under windows?

Is there any way to disable window cycling ([Alt]-[Tab]) in Windows
when my SDL app is in fullscreen mode?

I’d like to add it as an option (e.g., “–nocycle”), so that users can’t
"get out" of the application. (Which is a good idea, since they’ll probably
be very young children :^) )

Thanks!

-bill!

Is there any way to disable window cycling ([Alt]-[Tab]) in Windows
when my SDL app is in fullscreen mode?

There are more keys which leave DirectX applications,
for example Ctrl-Esc…

Bill Kendrick wrote:

Is there any way to disable window cycling ([Alt]-[Tab]) in Windows
when my SDL app is in fullscreen mode?

I’d like to add it as an option (e.g., “–nocycle”), so that users can’t
"get out" of the application. (Which is a good idea, since they’ll probably
be very young children :^) )

Thanks!

-bill!

Try SDL_WM_GrabInput(SDL_GRAB_ON);
http://sdldoc.csn.ul.ie/sdlwmgrabinput.php

RK.

when coding winapi you can simply catch alt+tab in your message loop and
return to your programm instead of giving it to windows. (just as if
catching another key)
this might work in sdl, too.

Romi Kuntsman wrote:> Bill Kendrick wrote:

Is there any way to disable window cycling ([Alt]-[Tab]) in Windows
when my SDL app is in fullscreen mode?

I’d like to add it as an option (e.g., “–nocycle”), so that users can’t
"get out" of the application. (Which is a good idea, since they’ll
probably be very young children :^) )

Thanks!

-bill!

Try SDL_WM_GrabInput(SDL_GRAB_ON);
http://sdldoc.csn.ul.ie/sdlwmgrabinput.php

RK.


Matthias Bach

Marix eMonkey 2002

personal webpage:
http://www.marix.madsite.de

It’s a very common request to want to do this under windows, though it
usually comes up because someone doesn’t want to bother to do all the
work necessary to handle it properly.

In any case, the general answer is that there are more ways to switch
out of an application in Windows than you can dream about, and that
you really just need to handle things properly when it happens.

You can try to disable the ones caused by the keyboard, but it’ll
probably happen anyway.

     Kent

Thursday, September 12, 2002, 7:52:15 PM, sdl-admin wrote:> Is there any way to disable window cycling ([Alt]-[Tab]) in Windows

when my SDL app is in fullscreen mode?

I’d like to add it as an option (e.g., “–nocycle”), so that users can’t
"get out" of the application. (Which is a good idea, since they’ll probably
be very young children :^) )

Thanks!

-bill!


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Kent Quirk, CTO, CogniToy
@Kent_Quirk
http://www.cognitoy.com

Ok - sure - How do I disable that in fullscreen, too!? :slight_smile:

-bill!On Fri, Sep 13, 2002 at 12:22:14PM +0200, Eike Sauer wrote:

Is there any way to disable window cycling ([Alt]-[Tab]) in Windows
when my SDL app is in fullscreen mode?

There are more keys which leave DirectX applications,
for example Ctrl-Esc…

Thanks! I’ll try it and ask the Windows folks if it helps.

-bill!On Fri, Sep 13, 2002 at 02:37:08PM +0200, Romi Kuntsman wrote:

Try SDL_WM_GrabInput(SDL_GRAB_ON);
http://sdldoc.csn.ul.ie/sdlwmgrabinput.php