I just notice a problem with #PB_Date_Maximum and DateGadget.
If you try to set the max year range > 2037, the blocking is not working anymore.
Code: Select all
If OpenWindow(0, 0, 0, 235, 250, "DateGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
DateGadget(0, 10, 10, 210, 25, "%mm/%yyyy", 0, #PB_Date_UpDown)
SetGadgetAttribute(0, #PB_Date_Minimum, Date(2010, 1, 1, 0, 0, 0))
; SetGadgetAttribute(0, #PB_Date_Maximum, Date(2037, 12, 31, 0, 0, 0)) ; ok
SetGadgetAttribute(0, #PB_Date_Maximum, Date(2038, 12, 31, 0, 0, 0)) ; not ok
Repeat
If EventGadget() = 0
If EventType() = #PB_EventType_Change
Debug GetGadgetText(0)
EndIf
EndIf
Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
// Moved from "Bugs - Windows" to "Coding Questions" (Kiffi)