Using the built-in RBTimeViewItems and RBTimeViewItem objects
you can have complete control on the schedule items that are in the component.
Schedule items (events, meetings, etc.) are stored in the
component independently from the display, so, for instance, if you have defined
a meeting on a specific day - that item still remains in the component even
after you move to a different day and then return to the original day.
-
Items are kept separately from the display - as a developer you don't need
to worry about keeping state of items.
-
Add or remove schedule items (TRBTimeViewItem) to the component by using
several methods.
- Add or remove all day events (appear in the top area of the display). Items
can be freely moved between an all day status and a regular schedule:
-
You can attach a 32 bit pointer to a custom data for each item.
-
Each item have multiple properties that define its look - like color, start
and end time and caption.
-
The item's caption will be formatted automatically according to available
space on the display - so large amount of text will wrap multiple line,
if will be marked with an ellipsis if there no space to display it completely.
-
You can set a reminder icon to be visible in the item. The actual bitmap
can be specified using standard TImageList controls.
-
You can place a Private icon in the item to designate it as a private item.
As in the reminder icon, the actual bitmap can be specified using standard
TImageList controls.
-
Change the start or the end of a schedule event just by dragging it -
the component will automatically adjust the display for any overlapping
events, you can provide a custom hint to this event.
-
Items can be programmatically be scrolled into view using a specific method.
-
You can load and save the content of the schedule items to a file or a
stream using built-in methods.
-
Integration with RBCalendar (or any other calendar component) is easy -
you have a method that will tell you which days are "occupied"
by schedule items, so you could mark those days in the calendar.