Hi i have some questions in Ultramonthview single calendar,
1.Is it possible each week height in different size in monthviewsingle calendar?
2.Is it possible to add custom buttons in a particular day?if yes how many we can add in a single day?
Thanks in advance,
Shan
I'm terribly sorry, but I am having trouble visualizing what you are looking to achieve. The day area for MonthViewSingle typically occupies a square inch or so of area, which is not enough space in which to display another calendar, so I suspect I am not understanding your requirements. If you could attach a screen shot that illustrates the problem you are trying to solve we can take a look and try to help.
Thanks Brain for your timely reply.
My requirement is,i have a schedule table,in this table an each date can have more than one schedule(assume max 3) with schedule description.I have to display the schedule descrption in a custom button.if i click the button it has to open my custom schedule entry form (by using right click option also i can open my custom schedule form). I have to design a monthly form which has to display all the schedules for that month from my schedule table.So i decided to use MonthViewSingle Calendar.My questions here are......
How to find out the location of my custom button in a single day slot?
1.In a single day slot,if i have more than one schedule how can i disply the schedule one by one?(assume i am displaying 5 week period.so i have to loop my schedule table from day 1 to day 35.if day 1 has 3 schedule i have to display this schedule one by one by using my custom button instead of default appiontment button)
2.if user double click a day slot i am open my custom schedule entry form(using this event ultraCalendarInfo1_BeforeDisplayAppointmentDialog i am cancel the default appionment form).once user enter the schedule and save then i have to display the schedule descrption in the particular day slot with my custom button.
3.How can i find out the location of my custom button in that particular clicked day slot?(if already two schedules are there in the day slot,i have to add the new schedule under or above the two schedules)
Is this possible by using monthviewsingle calendar?
1. No, each week is the same height, that height being dependent on the height of the control.
2. Yes, using the IUIElementCreationFilter interface. There is no theoretical limit, although you should be aware that unless you prevent appointments/notes from appearing within the day area, those buttons will not necessarily be visible, i.e., the control's metrics calculation routines do not know about them so no space is carved out for them.