If OpenWindow(0,0,0,500,250,"Window",#PB_Window_SystemMenu|#PB_Window_ScreenCentered) CalendarGadget(1,10,10,200,200) SetWindowLongPtr_(GadgetID(1),#GWL_STYLE,GetWindowLongPtr_(GadgetID(1),#GWL_STYLE)|#MCS_NOTODAY) Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow EndIf