Page 2 of 2
Posted: Wed Oct 24, 2007 7:27 am
by maw
But he doesn't want to use Windows API-functions, that's the whole point...
Posted: Tue Oct 30, 2007 6:48 pm
by netmaestro
If you're using stringgadgets, there is a very useful pair of eventtypes available, #PB_EventType_Focus and #PB_EventType_LostFocus. These can be tapped to add and remove keyboard shortcuts, allowing for the assignment of shortcuts to specific gadgets only. An example can be found here, so I won't write another one:
http://www.purebasic.fr/english/viewtopic.php?t=27245