Page 1 of 1

Posted: Fri Mar 14, 2003 8:57 pm
by BackupUser
Restored from previous forum. Originally posted by cor.

I have a program which plays a sound when pressing the space key.

I have don't it using the addkeyboardshortcut.

But now I want to edit a stringgadget with a space char, which now
of course play the sound instead of adding a space.

How can I disable temporarely the 'space' addkeyboardshortcut when
the stringgadget has focus?




Using Windows 98 SE
Registered Purebasic
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
http://www.chordplanet.com

Posted: Fri Mar 14, 2003 11:56 pm
by BackupUser
Restored from previous forum. Originally posted by freak.

Use RemoveKeyboardShortcut() to remove the Shortcut, if you detect that a StringGadget
has the focus, and add a new Shortcut, if the Gadget looses the focus.

Timo