CHMlib Logo Leading Translation Management System for Translation Agencies, Top Translation Management Software for Freelance Translators, Time Tracking Software, Word Count, Character Count and Line Count Software, Computer Assisted Translation Tool for Easy Word Count, Clipboard Character Count Software, User-Friendly Translation Memory Software, Terminology Management Software, Terminology Management Server, Microsoft Glossary Software, Dictionary of Acronyms, Social Network for Translators and Translation Agencies, Acronyms and Abbreviations Search Engine, Russian Translation Lab, Ukrainian Translation Lab.
You are reading help file online using chmlib.com
TPSCCustomCalendar

TPSCCustomCalendar.OnDrawItem
TPSCCustomCalendar

Occurs when an element of the calendar should be drawn.

property OnDrawItem: TPSCCalendDrawItemEvent;

Unit
psc_calendar

Description
Write OnDrawItem handler to customise drawing of different elements in the calendar. Calendar determines a calendar control. ADate determines date related with drawing element. The element of the calendar, which is drawn, is determined by Area parameter. DateType determines state of the element. Rect determines rectangle where user has to draw. When user wants to draw element by self he should set DefaultDrawing to False. Default value of the DefaultDrawing is True. The following table defines and describes briefly different areas of the calendar and possible values of DateType for these areas:
Value - Area - DateType values
chtLeftArrow - Left arrow - cdtNormal
chtRightArrow - Right arrow - cdtNormal
chtMonthHead - Header of the month page - cdtNormal
chtWeekDays - Week header - cdtNormal
chtWeekLeft - Left side of the month page - cdtWeek, cdtHidden,cdtSelectedWeek
chtWeekRight - Right side of the month page - cdtWeek, cdtHidden, cdtSelectedWeek
chtDay - Day of month - cdtNormal, cdtSelected
chtLeftGray - Day of previous month - cdtGray, cdtSelected
chtRightGray - Day of next month - cdtGray, cdtSelected
chtHidden - Hidden day - cdtHidden
Use OnMeasureItem event for customizing the size of different elements of the calendar. There is a way for customizing background, text colors and text styles of drawing element. Use OnGetPaintParams event for these means.


Generated by Putersoft.FreeHelp. Copyright © 1999-2002. puterSoft.Com
You are reading help file online using chmlib.com


If you want your help file to be removed or added please send e-mail to chmlibcom@gmail.com