Lebans MonthCalendar - Problem With SetBoldDayState

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to use the sample code in the Leban's calendar class initialize
event.

I am not sure what code in the class initialize event to uncomment to make
this functional. When I uncomment the code I think I need I get red text and
compiler error

Does anyone have a working example that shows the bolding of dates.
 
It's certainly not the easiest Property to Get/Set but blame
Microsoft...not me!<grin>
And yes, the docs need to be updated for this Prop. I'll do so in the
next release.

In the Form's Load event or anytime before you open the MonthCalendar
use code like:
mc.SetBoldDayState numYear:=2004, numMonth:=1, day:=1, ResetMonth:=True
',

This BOLDS the date of January 1,2004

It also RESETS any existing BoldDayStates for this Month to NOTHING. In
other words ResetMonth means to clear out all existing Bold DayStates
for this specific month. If you are issuing multiple calls to set this
property then you would only set the optional ResetMonth parameter to
TRUE for the first call!

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top