[Module] CalendarEx - Module (all OS)

Hier könnt Ihr gute, von Euch geschriebene Codes posten. Sie müssen auf jeden Fall funktionieren und sollten möglichst effizient, elegant und beispielhaft oder einfach nur cool sein.
Benutzeravatar
Thorsten1867
Beiträge: 1359
Registriert: 04.02.2005 15:40
Computerausstattung: [Windows 10 x64] [PB V5.7x]
Wohnort: Kaufbeuren
Kontaktdaten:

[Module] CalendarEx - Module (all OS)

Beitrag von Thorsten1867 »

CalendarEx - Gadget (all OS / 64Bit / DPI)
  • Anzeige von Terminen
  • Import & Export von iCal
  • Unterstützung von Date64
  • automatische Größenanpasung
  • Unterstützung von GUI - Themes (benötigt ModuleEx.pbi)
Bild

Code: Alles auswählen

; 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
Zuletzt geändert von Thorsten1867 am 20.12.2019 16:55, insgesamt 9-mal geändert.
Download of PureBasic - Module
Download of PureBasic - Programmes

[Windows 11 x64] [PB V6]

Bild
Benutzeravatar
RSBasic
Admin
Beiträge: 8022
Registriert: 05.10.2006 18:55
Wohnort: Gernsbach
Kontaktdaten:

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

Beitrag von RSBasic »

Cool :allright:
Kannst du auch eine Option hinzufügen, um auch Tage vom letzten und nächsten Monat anzuzeigen, um die erste und letzte Zeile damit zu füllen? Diese Zahlen können grau dargestellt werden.
Und kannst du auch ein Event hinzufügen, dass die Monate automatisch in kurzer Zeit gescrollt werden, wenn man die linke Maustaste gedrückt hält, wie original beim DateGadget?
Kannst du auch das Datum vor 1970 und nach 2032 unterstützen?
Aus privaten Gründen habe ich leider nicht mehr so viel Zeit wie früher. Bitte habt Verständnis dafür.
Bild
Bild
Benutzeravatar
Thorsten1867
Beiträge: 1359
Registriert: 04.02.2005 15:40
Computerausstattung: [Windows 10 x64] [PB V5.7x]
Wohnort: Kaufbeuren
Kontaktdaten:

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

Beitrag von Thorsten1867 »

Update:
  • Added: #GreyedDays um Tage des vorherigen bzw. daraufolgenden Monats anzuzeigen
  • Added: AddEntry() um Kalendereinträge hinzuzufügen
  • Added: ToolTipps für Kalendereinträge
Bild
Zuletzt geändert von Thorsten1867 am 07.07.2019 12:34, insgesamt 1-mal geändert.
Download of PureBasic - Module
Download of PureBasic - Programmes

[Windows 11 x64] [PB V6]

Bild
Benutzeravatar
RSBasic
Admin
Beiträge: 8022
Registriert: 05.10.2006 18:55
Wohnort: Gernsbach
Kontaktdaten:

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

Beitrag von RSBasic »

:allright:
Aus privaten Gründen habe ich leider nicht mehr so viel Zeit wie früher. Bitte habt Verständnis dafür.
Bild
Bild
Benutzeravatar
Thorsten1867
Beiträge: 1359
Registriert: 04.02.2005 15:40
Computerausstattung: [Windows 10 x64] [PB V5.7x]
Wohnort: Kaufbeuren
Kontaktdaten:

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

Beitrag von Thorsten1867 »

Update: ToolTip-Modul für mehrzeilige Tooltipps mit Titelzeile hinzugefügt.
Zuletzt geändert von Thorsten1867 am 09.07.2019 22:11, insgesamt 1-mal geändert.
Download of PureBasic - Module
Download of PureBasic - Programmes

[Windows 11 x64] [PB V6]

Bild
Benutzeravatar
Thorsten1867
Beiträge: 1359
Registriert: 04.02.2005 15:40
Computerausstattung: [Windows 10 x64] [PB V5.7x]
Wohnort: Kaufbeuren
Kontaktdaten:

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

Beitrag von Thorsten1867 »

Update: Date64-Modul hinzugefügt, um Datumswerte kleiner 1970 und größer 2038 zu unterstützen.
Download of PureBasic - Module
Download of PureBasic - Programmes

[Windows 11 x64] [PB V6]

Bild
Benutzeravatar
Thorsten1867
Beiträge: 1359
Registriert: 04.02.2005 15:40
Computerausstattung: [Windows 10 x64] [PB V5.7x]
Wohnort: Kaufbeuren
Kontaktdaten:

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

Beitrag von Thorsten1867 »

Bugfixes: DPI bei ToolTips

Update: LeftDoubleClick returns as EventData() the day of month (#EventType_Day)
Download of PureBasic - Module
Download of PureBasic - Programmes

[Windows 11 x64] [PB V6]

Bild
Benutzeravatar
Thorsten1867
Beiträge: 1359
Registriert: 04.02.2005 15:40
Computerausstattung: [Windows 10 x64] [PB V5.7x]
Wohnort: Kaufbeuren
Kontaktdaten:

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

Beitrag von Thorsten1867 »

Update:
  • Added: Popup-Menü für Tage des Monats / UpdatePopupText()
  • Added: #EventType_Focus / #EventType_RightClick
  • Added: EventDate() / EventEntries()
Download of PureBasic - Module
Download of PureBasic - Programmes

[Windows 11 x64] [PB V6]

Bild
Benutzeravatar
Thorsten1867
Beiträge: 1359
Registriert: 04.02.2005 15:40
Computerausstattung: [Windows 10 x64] [PB V5.7x]
Wohnort: Kaufbeuren
Kontaktdaten:

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

Beitrag von Thorsten1867 »

Update: Import & Export von Kalendereinträgen im iCal-Format
Download of PureBasic - Module
Download of PureBasic - Programmes

[Windows 11 x64] [PB V6]

Bild
Benutzeravatar
Thorsten1867
Beiträge: 1359
Registriert: 04.02.2005 15:40
Computerausstattung: [Windows 10 x64] [PB V5.7x]
Wohnort: Kaufbeuren
Kontaktdaten:

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

Beitrag von Thorsten1867 »

Update:
  • Changed: AddEntry() -> Colors und ToolTipMask entfernt
  • Added: SetEntryColor() / SetEntryMask() / CountEntries() / GetEntries()
  • Added: Flags für Kalendereinträge (#FullDay/#StartTime/#Duration)
Download of PureBasic - Module
Download of PureBasic - Programmes

[Windows 11 x64] [PB V6]

Bild
Antworten