Strange! I've tested with this:
Code: Select all
Procedure NoTabJump(gadget)
CompilerIf #PB_Compiler_OS = #PB_OS_Windows
If IsGadget(gadget)
style=GetWindowLong_(GadgetID(gadget),#GWL_STYLE)
SetWindowLong_(GadgetID(gadget),#GWL_STYLE,style&((-1)-#WS_TABSTOP))
EndIf
CompilerEndIf
CompilerIf #PB_Compiler_OS = #PB_OS_Linux
If IsGadget(gadget)
*obj.GtkObject = GadgetID(gadget)
*obj\flags = *obj\flags &~ (1 << 11)
EndIf
CompilerEndIf
EndProcedure
If OpenWindow(0, 0, 0, 222, 105, "ButtonGadgets", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) And CreateGadgetList(WindowID(0))
ButtonGadget(0, 10, 10, 200, 0, "Button 0")
ButtonGadget(1, 10, 40, 200, 0, "Button 1")
ButtonGadget(2, 10, 70, 200, 0, "Button 2")
NoTabJump(2)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
And get this:
http://www.youtube.com/watch?v=5O-6q_p_p-I