Windows: Pressing Return simulates pressing Tab

Share your advanced PureBasic knowledge/code with the community.
maw

Post by maw »

But he doesn't want to use Windows API-functions, that's the whole point...
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post 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
BERESHEIT
Post Reply