Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Estrange bug with MonthView
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00514392
Message ID:
00514617
Views:
15
Plinio,

The Init event fires only once when control get instaniated.
You'll have to move your code to the custom method, say SetDaysBold and call it from Init and every other place where month or year changes.


>I designed a Scheduler on a form. On my calendar control I show some days with bold fonts. I use the next lines of codes (Init Event):
>
>FOR i = 1 TO 42
> SEEK CTOD(SUBSTR(TTOC(Thisform.Olecalendar.Object.Visibledays(i)),1,10))
> IF FOUND()
> Thisform.OleCalendar.Object.DayBold(ttoc(Thisform.OleCalendar.Object(i))) = .t.
> ENDIF
>
>ENDFOR
>
>This work fine, but when I change the month and back again this does not work.
>
>Thanks
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform