Sign in Join
Wiki copytemporary

CalLite: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11## About
22
33![CalLite](/wiki-images/9/90/Callite.png) TCalendarLite is a lightweight calendar component, a TCustomControl descendant which consequently is not dependent on any widgetset. It is not a fixed-size component, as are most calendars, but will align and resize as needed. Various properties give access to almost every aspect of its appearance.
44
55## Authors
66
77Howard Page-Clark, Ariel Rodriguez and Werner Pamler
88
99## License
1010
1111Modified LGPL (with linking exception, like Lazarus LCL)
1212
1313## Download and Installation
1414
1515#### Release version
1616
1717A zip file with the most recent release version can be found at [Lazarus CCR at SourceForge](https://sourceforge.net/projects/lazarus-ccr/files/CalLite/). Unzip the file into any folder.
1818
1919The current release version is 0.3.1
2020
2121#### Development version
2222
2323Use an svn client to download the current trunk version from [<svn://svn.code.sf.net/p/lazarus-ccr/svn/components/callite/>](svn://svn.code.sf.net/p/lazarus-ccr/svn/components/callite/)
2424
2525#### Version Notes
2626
2727- **v0.3.10** breaks existing code relying on `TDayOfWeek` starting at value 1. This had to be changed to start at 0 to fix compilation with FPC 3.3.1.
2828
2929#### Installation
3030
3131![](/wiki-images/7/72/Tcalendarlite_150.png) In Lazarus, go to *"Package"* \> *"Open Package File .lpk"*. Navigate to the folder with the callite sources, and select **callight_pkg.lkp**. Click *"Compile"*, then *"Use"* \> *"Install"*. This will rebuild the IDE (it may take some time). When the process is finished the IDE will restart, and you'll find TCalendarLite in the component palette **[[Misc tab|Misc]]**.
3232
3333## Navigation
3434
3535- Click on any date
3636- Use the arrow keys on the keyboard
3737- Click on the arrow keys above the calendar; the single arrow advances by one month, the double arrow advances by one year
3838- Click on the month name to open a popdown menu with month names, or click on the year number to open a popdown menu with the last and next ten years.
3939
4040## Multi-selection
4141
4242If the property `MultiSelect` is set to `true` then several days can be selected in the calendar. All selected days are drawn with a highlighted background. Multi-selection is controlled by holding special keys down while selecting a day either by a mouse click or a key press:
4343
44-- **CTRL**: If the <span class="kbd">CTRL</span> key is pressed while selecting another day then this day is added to the selection. This way a non-contiguous array of dates can be selected.
45-- **SHIFT**: If the <span class="kbd">SHIFT</span> key is held down during day selection then all day between the prevsiously and the currently selected day are added to the selection.
46-- **Double-click**: A double click on a workday selects all workdays of the same week. Holding the <span class="kbd">CTRL</span> or <span class="kbd">SHIFT</span> key down extends the selection by the workdays of one or more weeks.
47-- The selection can be extended into neighboring months if the arrow keys of the keyboard are pressed with the <span class="kbd">CTRL</span> key held down.
44+- **CTRL**: If the `CTRL` key is pressed while selecting another day then this day is added to the selection. This way a non-contiguous array of dates can be selected.
45+- **SHIFT**: If the `SHIFT` key is held down during day selection then all day between the prevsiously and the currently selected day are added to the selection.
46+- **Double-click**: A double click on a workday selects all workdays of the same week. Holding the `CTRL` or `SHIFT` key down extends the selection by the workdays of one or more weeks.
47+- The selection can be extended into neighboring months if the arrow keys of the keyboard are pressed with the `CTRL` key held down.
4848- Selection is cleared if any date is selected without pressed any of these keys, or if the arrows or dropdown menus in the top bar are used.
4949- If previously selected days are added for a second time then they are unselected.
5050
5151At **run-time**, the selected data can be controlled or queried by these methods of the calendar:
5252
5353- `procedure AddSelectedDate(ADate: TDate)` - adds the specified date to the list of selected dates
5454- `procedure ClearSelectedDates` - clears all selected dates
5555- `function IsSelected(ADate: TDate): Boolean` - returns `true` when the given date is selected, `false` otherwise.
5656- `function SelectedDates: TCalDateArray` - returns an array of TDate elements which contains the selected dates.
5757
5858## Documentation
5959
6060- [[CalLite: Usage]]
6161- [[CalLite: Flag days in Finland]]
6262
6363## See also
6464
6565- [[Turbopower Visual PlanIt|TurboPower Visual PlanIt]]
6666- [[DateTimeCtrls Package]]
6767
6868---
6969*From the Free Pascal wiki, page "CalLite", as it stood on 2022-12-18 after a change by Wp, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history