Code: Select all
If OpenWindow(0, 0, 0, 220, 200, #PB_Window_SystemMenu|#PB_Window_Screencentered,"CalendarGadget()")
If CreateGadgetList(WindowID())
CalendarGadget(0, 10, 10, 200, 180, 0, #PB_WindowInvisible)
Repeat: Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
EndIf
Currently using:
Code: Select all
Global id.l
If OpenWindow(0, 0, 0, 220, 200, #PB_Window_SystemMenu|#PB_Window_Screencentered,"CalendarGadget()")
If CreateGadgetList(WindowID())
id = CalendarGadget(#PB_ANY, 10, 10, 200, 180)
ShowWindow_( GetDlgItem_( WindowID(), id ), #SW_HIDE )
Repeat: Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
EndIf



