Recent

Author Topic: Some help with TCalendar please :-)  (Read 3719 times)

scismondo

  • New Member
  • *
  • Posts: 13
    • http://www.icilinux.com
Some help with TCalendar please :-)
« on: February 03, 2005, 06:27:43 pm »
Hi all,

I've used a TCalendar to create, read, edit appointements. One file per day is created, with all the details of each appointment for that day. I'm using the date of the selected day in the TCalendar to generate the file name.

Is there a way to "mark" in the TCalendar each day if there are appointements for that particular day? I mean, each time the month is changed, I would have a loop that would check, for each day, if the file exists or not.

I know how to check if a file exists depending on the selected day (that should be something like "if FileExists(DateToStr(Calendar1.Date))..."). What I don't know is:
- how to create a loop that would check each day of the selected month,
- how to change the color or the style of a day if the file exists. A simple bold / non-bold difference would be enough.

Anyone to help a beginner?

Thanks in advance,

Seb.

 

TinyPortal © 2005-2018