DateGadget abnormality

Just starting out? Need help? Post your questions and find answers here.
goomoo
Posts: 11
Joined: Fri Sep 04, 2015 4:14 pm

DateGadget abnormality

Post 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)
User avatar
Peter
Posts: 1197
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: DateGadget abnormality

Post 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.
Post Reply