![]() |
Problem with custom icons on xtpCalendarMonthView |
Post Reply ![]() |
Author | |
flauzer ![]() Senior Member ![]() ![]() Joined: 30 December 2003 Location: Italy Status: Offline Points: 108 |
![]() ![]() ![]() ![]() ![]() Posted: 22 August 2007 at 4:22am |
I use ImageList to add custom icons.
With objThemeOffice2007.CustomIcons
.RemoveAll .AddIcon IML.ListImages.Item(ICONT.myDossier).ExtractIcon.Handle, ICONT.myDossier, xtpImageNormal .AddIcon IML.ListImages.Item(ICONT.myReminder).ExtractIcon.Handle, xtpCalendarEventIconIDReminder, xtpImageNormal .AddIcon IML.ListImages.Item(ICONT.myRecurr).ExtractIcon.Handle, xtpCalendarEventIconIDOccurrence, xtpImageNormal .... and so on.
then I use CalendarControl_PrePopulate as in VB CJ sample.
with 1 and 5 day-view all is working well, but with 7 and 31 views I can't see icons....
any suggestions????
Thanks
|
|
![]() |
|
HansN ![]() Newbie ![]() Joined: 06 August 2007 Location: Austria Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() |
Hi !
I have the same problem. Did you already solve that problem ? Can it be that it is dependent on that the icons are from an ListImage and not loaded from file as in the VB sample ? Thanks in advance. HansN |
|
![]() |
|
flauzer ![]() Senior Member ![]() ![]() Joined: 30 December 2003 Location: Italy Status: Offline Points: 108 |
![]() ![]() ![]() ![]() ![]() |
Looks like the problem is in icons height.
Try this, for each views,.....for example if you have 16x16 small icons:
With objThemeOffice2007.WeekView.Event.EventIconsToDraw
.ShowOccurrence = True
.ShowReminder = True .ShowException = True .ShowMeeting = True .ShowPrivate = True End With --->>>
objThemeOffice2007.WeekView.Event.HeightFormula.Constant = 16
objThemeOffice2007.RefreshMetrics ----->>>> |
|
![]() |
|
HansN ![]() Newbie ![]() Joined: 06 August 2007 Location: Austria Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() |
![]() Thanks a lot. It works fine now. I remember there was written somewhere in the help, that icons will be displayed if they fit in ! So the only solution is to set up an constant height. But one have to know where to do it ! I never would have found that without your help. So again thanks a lot. HansN |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |