EnableExplicit If OpenWindow(0,0,0,500,250,"Window",#PB_Window_SystemMenu|#PB_Window_ScreenCentered) ButtonGadget(1,10,10,100,50,"Versuche die Tabulator-Taste zu drücken...",#PB_Button_MultiLine) ButtonGadget(2,120,10,100,50,"Aber nur dieser Button bekommt den Fokus...",#PB_Button_MultiLine) SetWindowLongPtr_(GadgetID(1),#GWL_STYLE,GetWindowLongPtr_(GadgetID(1),#GWL_STYLE) ! #WS_TABSTOP) Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow EndIf