Results 1 to 15 of 15

Thread: Drawing a Calendar (MonthView) using FLEXGRID [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2002
    Location
    AUSTRALIA
    Posts
    603

    Drawing a Calendar (MonthView) using FLEXGRID [RESOLVED]

    I would like to draw my own Calendar into a grid.
    It would probably be more like a MonthView, so that I can use it for TODO's.
    Using my own grid, would allow partial display of the TODO's, so if more than one on same day, it is obvious.
    Also we could have different BackColors to indicate different types, or in my case I would allow user to choose a normal highlight color and also they can mark it urgent with a different color.
    Some of the guys have generously helped with a user control calendar (which can have different colors), but not readily convertible to a larger MonthView style.

    I have come across an excellent example that uses the flexgrid, but it draws with Monday as the first day of the week.
    In Australia we need Sunday.
    I think by posting the link, it will be of interest to many of you ?

    http://visualbasicforum.com/showpost...0&postcount=29

    I got my copy running quite easily.
    I then tried changing this line
    VB Code:
    1. ' lFirstCol = Weekday(lFirstDate, vbUseSystemDayOfWeek) - 1
    2.   lFirstCol = Weekday(lFirstDate, vbUseSystemDayOfWeek)
    and that actually did get Sunday to the left, but it carked, on some months (EG Oct 2004)
    If someone could tell me how to tweak it to show Sunday as the first day of the week, I would really appreciate it.

    Thanks.
    PS After I (cough!), get it working in flexgrid, with Sunday on the left, I will then convert my copy to use SGrid2.
    If anyone is interested, I will then make that available.
    Last edited by RobCrombie; Mar 27th, 2005 at 12:09 AM.
    Rob C

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width