1. Re: Month Calendar control: make dates bold? Notification delay in Win32Li
- Posted by Al Getz <Xaxo at aol.com> Feb 23, 2005
- 448 views
Hi there Jonas, The following code works for the initial cal settings. The notification will have to be processed in order to update the calendar once the months have changed. atom pDSs pDSs=allocate(4*12) --allocate space for 12 months for k=0 to 2 do poke4(pDSs+k*4,k) --None for leading month, day 1 for present month, etc. end for retv=IDSendMessage(MC1,MCM_SETDAYSTATE,3,pDSs) --days get set to bold Once the cal is displayed the days in the first three months are affected but you cant see the leading month's first day when only one cal gets displayed (according to draw space available) but the present month's first day is bold and the trailing month's second day is also bold. Once the month is changed via arrowheads the bold'ness goes away, so the notification message will have to be processed in order to restore the present month and perhaps set other months to whatever values the user has stored for them. Since this kind of change could possibly span years, you'll have to come up with some arrangement to store values for the user so that when the cal is changed it can be properly updated. I was thinking of perhaps a system to store bold dates where something important is happening on that day (appointments). Linked to a text editor, this could be a simple appointment book. The required storage would depend on how far into the future the user wanted to be able to set appointment dates i guess. Take care, Al And, good luck with your Euphoria programming! My bumper sticker: "I brake for LED's"