Date Gadget Not Working Correctly
Posted: Thu Apr 05, 2012 11:19 am
Several programs written using a separate Events Handler for EACH Window were working just fine
until I tried to introduce PB's DATEGADGET into a window which I find will not work correctly.
Set up as gadget in my Emuneration section as #Gadget_ViewDate so should have it's own unique ID.
Set up in any window ;-
DateGadget(#Gadget_ViewDate, 160, 290, 120, 25, "%dd/%mm/%yyyy", Date(), #PB_Date_CheckBox)
Clicking the gadget in the window will open the pop-up calendar but any selected date will not display.
Have overcome this by adding the following in the window events allowing selection from calendar
and displaying date correctly formatted.
Case #Gadget_ViewDate
SetGadgetText(#Gadget_ViewDate,"%dd/%mm/%yyyy")
However the displayed date will not allow editing as a normal DateGadget does.
Without resorting to Single Event Handler for a program is there any work around to allow date editing
using this method of coding.
Thanks Jumbuck
until I tried to introduce PB's DATEGADGET into a window which I find will not work correctly.
Set up as gadget in my Emuneration section as #Gadget_ViewDate so should have it's own unique ID.
Set up in any window ;-
DateGadget(#Gadget_ViewDate, 160, 290, 120, 25, "%dd/%mm/%yyyy", Date(), #PB_Date_CheckBox)
Clicking the gadget in the window will open the pop-up calendar but any selected date will not display.
Have overcome this by adding the following in the window events allowing selection from calendar
and displaying date correctly formatted.
Case #Gadget_ViewDate
SetGadgetText(#Gadget_ViewDate,"%dd/%mm/%yyyy")
However the displayed date will not allow editing as a normal DateGadget does.
Without resorting to Single Event Handler for a program is there any work around to allow date editing
using this method of coding.
Thanks Jumbuck