I can open the date selection window, but I can't change the date, or even close the selection window. This also happens with the example file for dategadget.
I tried this on two different computers, Ubuntu 7.10 Gutsy/PB 4.20 and ubuntu 8.04 Hardy/PB 4.30beta1, both with the same results. The same code compiles and works fine in Windows XP and PB 4.20. If I run the windows compiled executable in unbuntu (with wine 1.1.4) I do get a working dategadget, but there is nothing returned back from GetGadgetText.
Am I doing something wrong, or do I miss some libraries to get this working?
Can't select new date with Dategadget()
Code: Select all
If OpenWindow(0, 0, 0, 250, 200, "DateGadget Test", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
If CreateGadgetList(WindowID(0))
DateGadget(0, 10, 70, 230, 25,"Date %dd.%mm.%yyyy",0, #PB_Date_CheckBox)
TextGadget(1,10,10,230,25,"xx",#PB_Text_Border)
TextGadget(2,10,40,230,25,"xx",#PB_Text_Border)
Repeat:
SetGadgetText(1,"GetGadgetState: "+FormatDate("%dd.%mm.%yyyy",GetGadgetState(0)))
SetGadgetText(2, "GetGadgetText: "+GetGadgetText(0))
Delay(10)
Until WindowEvent() = #PB_Event_CloseWindow
SetGadgetState(0,946000000)
Repeat:
SetGadgetText(1,"GetGadgetState: "+FormatDate("%dd.%mm.%yyyy",GetGadgetState(0)))
SetGadgetText(2, "GetGadgetText: "+GetGadgetText(0))
Delay(10)
Until WindowEvent() = #PB_Event_CloseWindow
EndIf
EndIfIn this example too, the dategadget doesn't run :
Post a bug report.
Code: Select all
If OpenWindow(0, 0, 0, 250, 250,"DateGadget", #PB_Window_SystemMenu|#PB_Window_ScreenCentered)
If CreateGadgetList(WindowID(0))
DateGadget(0, 10, 10, 190, 25, "Date : %dd/%mm/%yyyy Heure : %hh:%ii")
Repeat: Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
EndIf
