EnableExplicit #UIS_CLEAR = 2 #UISF_HIDEFOCUS = 1 #UISF_HIDEACCEL = 2 If OpenWindow(0,0,0,500,250,"Window",#PB_Window_SystemMenu|#PB_Window_ScreenCentered) ButtonGadget(1,10,10,100,20,"Button 1",0) ButtonGadget(2,120,10,100,20,"Button 2",0) CheckBoxGadget(3,10,40,100,20,"CheckBox",0) SetActiveGadget(1) SendMessage_(WindowID(0), #WM_UPDATEUISTATE, ((#UISF_HIDEFOCUS|#UISF_HIDEACCEL)<<16) | #UIS_CLEAR, 0) Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow EndIf