[Module] DateEx - Gadget (all OS)

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
User avatar
Thorsten1867
Addict
Addict
Posts: 1366
Joined: Wed Aug 24, 2005 4:02 pm
Location: Germany

[Module] DateEx - Gadget (all OS)

Post by Thorsten1867 »

DateEx Gadget - Module (all OS / DPI / 64Bit)
  • support of Date64
  • automatic size adjustment
  • support of GUI themes (needs ModuleEx.pbi)
Image

Code: Select all

; DateEx::GetData()            - similar to 'GetGadgetData()'
; DateEx::GetID()              - similar to 'GetGadgetData()', but it uses a string
; DateEx::SetData()            - similar to 'SetGadgetData()'
; DateEx::SetID()              - similar to 'SetGadgetData()', but it uses a string
; DateEx::DisableReDraw()      - deaktivate/aktivate redrawing
; DateEx::Gadget()             - similar to 'DateGadget()'
; DateEx::GetState()           - similar to 'GetGadgetState()'
; DateEx::GetText()            - similar to 'GetGadgetText()'
; DateEx::Hide()               - similar to 'HideGadget()'
; DateEx::SetAutoResizeFlags() - [#MoveX|#MoveY|#Width|#Height]
; DateEx::SetAttribute()       - similar to 'SetGadgetAttribute()'
; DateEx::SetColor()           - similar to 'SetGadgetColor()'
; DateEx::SetFont()            - similar to 'SetGadgetFont()'
; DateEx::SetState()           - similar to 'SetGadgetState()'
; DateEx::SetText()            - similar to 'SetGadgetText()'
Download: DateExModule.pbi
Translated with http://www.DeepL.com/Translator

Download of PureBasic - Modules
Download of PureBasic - Programs

[Windows 11 x64] [PB V5.7x]
Cyllceaux
Enthusiast
Enthusiast
Posts: 469
Joined: Mon Jun 23, 2014 1:18 pm
Contact:

Re: [Module] DateEx - Gadget (all OS)

Post by Cyllceaux »

hey there...

I played a litte bit with Date64 and found this Problem:

Code: Select all

Define dateq.q=Date64::Date_(2100,1,1):Debug Date64::FormatDate_("%dd.%mm.%yyyy", Dateq) ; 01.01.2100
date64::AddDate_(dateq,#PB_Date_Month,1):Debug Date64::FormatDate_("%dd.%mm.%yyyy", Dateq) ; 01.02.2100
date64::AddDate_(dateq,#PB_Date_Month,1):Debug Date64::FormatDate_("%dd.%mm.%yyyy", Dateq) ; 01.02.2100
This looks wrong
Line 493

Code: Select all

 Procedure.q AddDate_Date.q, Type.i, Value.i)
Post Reply