If OpenWindow(0,0,0,500,250,"Window",#PB_Window_SystemMenu|#PB_Window_ScreenCentered) EditorGadget(1,10,10,480,230,0) SendMessage_(GadgetID(1),#EM_SETBKGNDCOLOR,0,RGB(200,200,255)) Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow EndIf