freak wrote:The tab key is automatically added to each window as a shortcut to jump
between the gadgets. Shortcuts are processed before passing on the
Message to the WindorProc it belongs to, that's why you get nothing.
With RemoveKeyboardShortcut() you can remove this easily.
The reason why your api code works is that it doesn't call TranslateAccelerator_(), which handles the shortcuts.
Timo
Timo,
just looked at the manual and you are right:
- By default, a window already has the #PB_Shorcut_Tab and #PB_Shortcut_Tab|#PB_Shortcut_Shift shortcuts to handle tab and shift-tab correctly trough the gadgets. A shortcut can be removed with RemoveKeyboardShortcut().
But nevertheless, IMO the way it is now, is not OK.
Normally if the user wants special functionality like: shortcuts to handle tab and shift-tab correctly trough the gadgets, this should be added through a command or through a parameter for WaitWindowEvent() and WindowEvent(), and not automatically added.
Like: WaitWindowEvent(#PB_ADD_GADGETS_TAB)
Maybe I should add this to the PB_Wishlist.
Thanks
EDIT: maybe WaitWindowEvent(#PB_USE_DIALOGSTYLE_TABS) is better, but it's up to the PureBasic Coding Team