|
-
Nov 3rd, 2000, 09:29 AM
#1
Thread Starter
Lively Member
Hello,
I would like to know if naybody already used MONTHVIEW control and GetDayBold events.
I created a small program with a MonthView control and a ComboBox contains a list of countries.
What I would like to do, is to display holidays in BOLD. That's what I've done with GetDayBold event. To do so, I had to do the following code :
for i = 1 to 42
easter = MyAPI(ItsParms)
if easter then State(i -1) = True
next i
If I use the following code, it does not work :
MonthView1.DayBold(MonthView1.VisibleDays(i)) = True
With this code, in debug mode (step by step), I can see the 1st november (France) becoming BOLD but not the 11 november even though the line is executed.
Then, on the 'End Sub' of GetDayBold, the day that has been BOLD become as NORMAL.
My second problem is, when I change the country in my ComboBox.
At this time, I need to execute again GetDayBold event but as I need to use State parameter, I wrote the following code :
for i = 1 to 42
easter = MyAPI(ItsParms)
if easter then State(i -1) = True else State(i-1) = False
next i
The problem here, is when the program execute 'State(i-1) = False' then GetDayBold exit the FOR ... NEXT loop.
Thanks for your help...
Thierry Demoy
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|