Page 1 of 3

[Module] CalendarEx - Gadget (all OS)

Posted: Sat Jul 06, 2019 3:36 pm
by Thorsten1867
CalendarEx - Gadget (all OS / 64Bit / DPI)
  • Display of appointments
  • Import & Export of iCal
  • Date64 support
  • Automatic size adjustment
  • Support of GUI themes (requires ModuleEx.pbi)
Image

Code: Select all

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

Re: [Module] Calendar - Module (all OS)

Posted: Sat Jul 06, 2019 6:08 pm
by zikitrake
Image

Re: [Module] Calendar - Module (all OS)

Posted: Sat Jul 06, 2019 8:20 pm
by Cyllceaux
This is cool... But:

Image

I think it's part of the dpi problem

Re: [Module] Calendar - Module (all OS)

Posted: Sat Jul 06, 2019 11:12 pm
by Thorsten1867
Update:
  • Added: #GreyedDays to show days of previous/next month
  • Added: AddEntry() to adds calendar entries
  • Added: ToolTips for calendar entries
Image

Re: [Module] Calendar - Module (all OS)

Posted: Tue Jul 09, 2019 10:06 am
by Thorsten1867
Added: ToolTip-Module for multiline tooltips with title

Re: [Module] Calendar - Module (all OS)

Posted: Tue Jul 09, 2019 11:37 am
by Lord
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.

Re: [Module] Calendar - Module (all OS)

Posted: Tue Jul 09, 2019 9:09 pm
by Thorsten1867
Update: Added Date64-Module to support dates less than 1970 and greater than 2038.

Re: [Module] Calendar - Module (all OS)

Posted: Tue Jul 09, 2019 9:28 pm
by Andre
Looks good, thanks for providing us! :D

Re: [Module] Calendar - Module (all OS)

Posted: Tue Jul 09, 2019 10:07 pm
by BarryG
Thorsten1867 wrote:Added Date64-Module to support dates less than 1970 and greater than 2038.
Nice! Will have to check this out.

Re: [Module] Calendar - Module (all OS)

Posted: Wed Jul 10, 2019 10:16 am
by Thorsten1867
Bugfixes: DPI for ToolTips

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

Re: [Module] Calendar - Module (all OS)

Posted: Wed Jul 10, 2019 5:57 pm
by Thorsten1867
Update:
  • Added: Popup menu for days of month / UpdatePopupText()
  • Added: #EventType_Focus / #EventType_RightClick
  • Added: EventDate() / EventEntries()

Re: [Module] Calendar - Module (all OS)

Posted: Fri Jul 12, 2019 3:41 pm
by Thorsten1867
Update: Import & export of calendar entries in iCal-format

Re: [Module] Calendar - Module (all OS)

Posted: Sat Jul 13, 2019 2:04 pm
by Thorsten1867
Update:
  • Changed: AddEntry() -> colors and tooltip mask removed
  • Added: SetEntryColor() / SetEntryMask() / CountEntries() / GetEntries()
  • Added: Calendar entry flags (#FullDay/#StartTime/#Duration)

Re: [Module] Calendar - Module (all OS)

Posted: Fri Jul 19, 2019 9:42 pm
by Andre
In latest version (13th July) I get an "Module element Gadget() not found" error at this line:

Code: Select all

 [2234]         Calendar()\TooltipNum = ToolTip::Gadget(Calendar()\CanvasNum, Calendar()\Window\Num)

Re: [Module] Calendar - Module (all OS)

Posted: Sat Jul 20, 2019 10:35 am
by Thorsten1867
Bugfixes