Page 1 of 1

DateGadget abnormality

Posted: Mon Jul 10, 2023 7:38 am
by goomoo
My OS: Windows10 Profesional
Web Browser: Edge
SpiderBasic: 2.31

Code: Select all

If OpenWindow(0, 0, 0, 200, 250, "DateGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  DateGadget(0, 10, 10, 180, 25, "%yyyy-%mm-%dd") ; Show 2013-07-10 , Correct.
  DateGadget(1, 10, 10+25+10, 180, 25, "%yyyy-%mm-%dd %hh:%mm:%ss") ; Show 2023-07-10 %12:07:%00, wrong .
  DateGadget(2, 10, 10+25+10+25+10, 180, 25, "%yyyy-%mm-%dd %hh:%ii:%ss")  ;When add this and run, it move the x,y to 0,0 and text is not appear .
EndIf
Image


// Moved from "Bugs Reports" to "Coding Questions" (Peter)

Re: DateGadget abnormality

Posted: Mon Jul 10, 2023 9:08 am
by Peter
SpiderBasic Documentation wrote:
Mask$ (optional): The format in which the date can be entered. See FormatDate() for the format of this mask.
Only %yyyy, %mm and %dd tags are supported. No extra text characters can be set in the date format.
If you don't specify the mask or specify an empty string, a default mask will be chosen. The mask can be modified with the SetGadgetText() function.