It is currently Mon Sep 23, 2019 8:57 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: [Module] Calendar - Module (all OS)
PostPosted: Sat Jul 06, 2019 3:36 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 898
Location: Germany
Calendar - Gadget (all OS / 64Bit / DPI)

Image

Code:
; Calendar::AddEntry()           - add an entry to the calendar
; Calendar::AttachPopupMenu()    - attachs a popup menu to the chart
; Calendar::CountEntries()       - counts entries of the day of current month
; Calendar::GetDate()            - similar to Date()
; Calendar::DefaultCountry()     - set country code for default language [DE/AT/FR/ES/GB/US]
; Calendar::DisableReDraw()      - disable/enable redrawing
; Calendar::ExportDay()          - exports the events of this day as a file    (iCal)
; Calendar::ExportLabel()        - exports the event with this label as a file (iCal)
; Calendar::EventDate()          - returns date after event
; Calendar::EventDayOfMonth()    - returns the day of month
; Calendar::EventEntries()       - returns calendar entries after event as linked list (Calendar::Entries_Structure)
; Calendar::Gadget()             - create a new gadget
; Calendar::GetDay()             - returns day of selected date
; Calendar::GetEntries()         - all entries on this date as linked list (Calendar::Entries_Structure)
; Calendar::GetMonth()           - returns month of selected date
; Calendar::GetState()           - returns selected date
; Calendar::GetYear()            - returns year of selected date
; Calendar::ImportEvent()        - imports an event from a file (iCal)
; Calendar::MonthName()          - defines name of the month
; Calendar::RemoveEntry()        - removes an entry form the calendar
; Calendar::SetAttribute()       - similar to SetGadgetAttribute()
; Calendar::SetAutoResizeFlags() - [#MoveX|#MoveY|#ResizeWidth|#ResizeHeight]
; Calendar::SetDate()            - similar to SetGadgetState()
; Calendar::SetEntryColor(GNum.i, Label.s, ColorType.i, Value.i)
; Calendar::SetEntryMask(GNum.i, Label.s, String.s)
; Calendar::SetColor()           - similar to SetGadgetColor()
; Calendar::SetFlags()           - set flags [#Year/#Month/#Gadget]
; Calendar::SetFont()            - similar to SetGadgetFont()
; Calendar::SetMask()            - define mask for time or date
; Calendar::SetState()           - similar to SetGadgetState()
; Calendar::ToolTipText()        - define mask for tooltips
; Calendar::WeekDayName()        - defines name of the weekday
; Calendar::UpdatePopupText()    - update menu item text with this mask

Download: CalendarModule.pbi

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules (GitHub)

[Windows 10 x64] [PB V5.7x]


Last edited by Thorsten1867 on Sat Jul 13, 2019 2:01 pm, edited 3 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] Calendar - Module (all OS)
PostPosted: Sat Jul 06, 2019 6:08 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Mar 25, 2004 2:15 pm
Posts: 700
Location: Spain
Image

_________________
PB 5.7x, PureVision User.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] Calendar - Module (all OS)
PostPosted: Sat Jul 06, 2019 8:20 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Jun 23, 2014 1:18 pm
Posts: 109
This is cool... But:

Image

I think it's part of the dpi problem


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] Calendar - Module (all OS)
PostPosted: Sat Jul 06, 2019 11:12 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 898
Location: Germany
Update:
  • Added: #GreyedDays to show days of previous/next month
  • Added: AddEntry() to adds calendar entries
  • Added: ToolTips for calendar entries
Image

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules (GitHub)

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] Calendar - Module (all OS)
PostPosted: Tue Jul 09, 2019 10:06 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 898
Location: Germany
Added: ToolTip-Module for multiline tooltips with title

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules (GitHub)

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] Calendar - Module (all OS)
PostPosted: Tue Jul 09, 2019 11:37 am 
Offline
Enthusiast
Enthusiast

Joined: Tue May 26, 2009 2:11 pm
Posts: 585
Hi!

If year is set to "1970" and month to "January" and then
the left arrow is clicked, the gadegt turns to "0" and it
is not possible to get any real year and month back.
Click on left and right arrow doesn't work then.
If you click on the "0", the spingadget appears, still set
to "1970", but the up and down arrows don't have any
effect.

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] Calendar - Module (all OS)
PostPosted: Tue Jul 09, 2019 9:09 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 898
Location: Germany
Update: Added Date64-Module to support dates less than 1970 and greater than 2038.

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules (GitHub)

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] Calendar - Module (all OS)
PostPosted: Tue Jul 09, 2019 9:28 pm 
Offline
PureBasic Team
PureBasic Team
User avatar

Joined: Fri Apr 25, 2003 6:14 pm
Posts: 1701
Location: Germany (Saxony, Deutscheinsiedel)
Looks good, thanks for providing us! :D

_________________
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] Calendar - Module (all OS)
PostPosted: Tue Jul 09, 2019 10:07 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu Apr 18, 2019 8:17 am
Posts: 275
Thorsten1867 wrote:
Added Date64-Module to support dates less than 1970 and greater than 2038.

Nice! Will have to check this out.


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] Calendar - Module (all OS)
PostPosted: Wed Jul 10, 2019 10:16 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 898
Location: Germany
Bugfixes: DPI for ToolTips

Update: LeftDoubleClick returns as EventData() the day of month (#EventType_Day)

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules (GitHub)

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] Calendar - Module (all OS)
PostPosted: Wed Jul 10, 2019 5:57 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 898
Location: Germany
Update:
  • Added: Popup menu for days of month / UpdatePopupText()
  • Added: #EventType_Focus / #EventType_RightClick
  • Added: EventDate() / EventEntries()

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules (GitHub)

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] Calendar - Module (all OS)
PostPosted: Fri Jul 12, 2019 3:41 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 898
Location: Germany
Update: Import & export of calendar entries in iCal-format

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules (GitHub)

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] Calendar - Module (all OS)
PostPosted: Sat Jul 13, 2019 2:04 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 898
Location: Germany
Update:
  • Changed: AddEntry() -> colors and tooltip mask removed
  • Added: SetEntryColor() / SetEntryMask() / CountEntries() / GetEntries()
  • Added: Calendar entry flags (#FullDay/#StartTime/#Duration)

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules (GitHub)

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] Calendar - Module (all OS)
PostPosted: Fri Jul 19, 2019 9:42 pm 
Offline
PureBasic Team
PureBasic Team
User avatar

Joined: Fri Apr 25, 2003 6:14 pm
Posts: 1701
Location: Germany (Saxony, Deutscheinsiedel)
In latest version (13th July) I get an "Module element Gadget() not found" error at this line:
Code:
 [2234]         Calendar()\TooltipNum = ToolTip::Gadget(Calendar()\CanvasNum, Calendar()\Window\Num)

_________________
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)


Top
 Profile  
Reply with quote  
 Post subject: Re: [Module] Calendar - Module (all OS)
PostPosted: Sat Jul 20, 2019 10:35 am 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 24, 2005 4:02 pm
Posts: 898
Location: Germany
Bugfixes

_________________
Sorry for my English. My language is German.
(Translated with http://www.DeepL.com/Translator)

Download of PureBasic - Modules (GitHub)

[Windows 10 x64] [PB V5.7x]


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye