I.T. Discussion Community!
-Collapse +Expand
Delphi
Search Delphi Group:

Advanced
-Collapse +Expand Delphi To/From
To/FromCODEGuides
-Collapse +Expand Delphi Store
PRESTWOODSTORE

Prestwood eMagazine

July Edition
Subscribe now! It's Free!
Enter your email:

   ► MB LobbyPascal and Delphi Coding BoardDelphi VCL Topic   Print This     

TMonthCalendar and OnGetMonthInfo problems

TMonthCalendar and OnGetMonthInfo problems in Delphi VCL topic (part of our Pascal and Delphi Coding group).

Quick Search: TMonthCalendar   OnGetMonthInfo   problems   TMonthCalendar OnGetMonthInfo   TMonthCalendar OnGetMonthInfo problems  
djsmith9
 (Inactive)
Rescue, CA
I've noticed a problem with the OnGetMonthInfo event of TMonthCalendar.

(IE. MonthCalendar1GetMonthInfo(Sender: TObject;
Month: Cardinal; var MonthBoldInfo: Cardinal); )

For example, the following code is in OnGetMonthInfo:

If month = 6 Then MonthCal.BoldDays([1,8],Month);

This works fine if you bring up the calendar in July, then click back to June. But if you bring up the calendar in June, no bold days. It seems to be designed to always be one click late with the bold days. The OnGetMonthInfo fires, but displays one click later. Bold days only work if you click into them from the increment buttons on the interface. I can't believe that Microsoft got Outlook 2000 to work with this thing, so there must be some way around this.

Does anyone know of a workaround for this annoying deficiency? I've tried firing an OnGetMonthInfo by itself to force the bold days but no luck. Otherwise, I'd like to know of any recommendations for a decent calendar with the bold days property (preferrably freeware heh heh heh :-).
 Posted 18 years ago (Thread Starter)
Comment Quote
About djsmith9 -Collapse +Expand
Visit Profile
Inactive member.
Member does not subscribe to this thread.
Email Not Verified!
Once email is verified, we will review and approve the account.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.

Post ID #6943, 1 replies
Thread Started 7/12/2002 12:51:00 AM
View Counter=7956
Last Reply Posted 9/4/2010 9:22:15 AM)
Location=Rescue, CA  
Joined=18 years ago   MB Posts=4  
Most Recent Post
Anonymous Post

Try such a nice piece of code as

Calendar.Date:=Calendar.Date+31;
Calendar.Date:=Calendar.Date-31;

to Force that component +)

And it will bold the current month))

---
Moonflame_9x
 Posted 10 years ago
Comment Quote

Post ID #14277 (Level 1.1)  Reply to 6943
Thread Started 9/4/2010 9:16:18 AM

Revive Thread!

Add a comment to revive this old thread and make this archived thread more useful.

Write a Comment...
Full Editor
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P1121A1
Enter key:
Icon: A Post    Thread    Idea    Important!    Cool    Sad    No    Yes    Includes a Link...   
Thread #6943 Counter
7956
Since 4/2/2008

Follow PrestwoodBoards on: 


©1995-2020 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech