dbicDayView Send comments on this topic.
Developing with dbicDayView - User Drawn

Glossary Item Box

User Drawn Functionality

The dbicDayView "User Drawn" functionality allows the developer to take control of the painting of objects in the control.  User Drawn functionality is surfaced in two areas of the control ...

User Drawn Column Headers:  The drawing of the header area of each column in the dbicDayView control.

User Drawn Appointments: The drawing of each appointment in the control.

 

User Drawn Column Header

Every time the dbicDayView control goes to paint a column header, the UserDrawnHeader Event is fired.  The event passes an "e" argument with all of the information and properties necessary for the developer to cancel the default drawing of the text in the header area and/or the background of the header area and replace them with custom drawn objects.  The "e" (event) argument in the UserDrawnHeader Event passes the following properties ...

User Drawn Appointment

Every time the dbicDayView control paints an appointment the UserDrawnAppointment Event is fired.  The event passes an "e" argument with all of the information and properties necessary for the developer to cancel the default drawing of the text in the appointment area and/or the background of the appointment area and replace them with custom drawn objects.  User Drawn Appointments behave the same as standard appointments.  The "e" (event) argument in the UserDrawnAppointment Event passes the following properties ...

For an example of the implementation of User Drawn Headers and User Drawn Appointments please review the dbicDayViewUserDrawn sample application that accompanies the product.