Hey Guys
Just a quick one. Is it possible to change the size of the appointment width in a Ultra Day View?
The current way it works is that when you add an appointment it fill the appointment to the available size of the View. so if you have 2 at the same time, it makes them 50% of the total width each.
I would however like to set a pixel size for appointments, so if there is only one, it does not fill the entire width.
I hope that is clear
Thanks in advance for any help
Cheers
That might be theoretically possible using the IUIElementCreationFilter interface, but you would then be messing with some of the more complicated logic. The AppointmentUIElement's geographic placement reflects its start/end time and duration, and when the times for 2 (or more) intersect, their widths are negotiated so as to be able to display them all in their appropriate TimeSlots. Doing what you are suggesting here could interfere with that, producing unpredictable results.
Not sure if you can override the width when there is only one owner. you can influence the width with multiple owners by doing this:
' Set the 'MinimumColumnWidth' property to 150 to prevent the columns ' from becoming too narrow when the user resizes them Me.dayViewAppointments.MinimumColumnWidth = 100 ' Set the 'PreferredColumnWidth' property to 150 so the columns ' start off with that initial width Me.dayViewAppointments.PreferredColumnWidth = 115
But to achieve what you are after I think you are going about it the wrong way. Why not just size your dayview control to be smaller?
me.DayViewControl.Width = NewValue
With docking and other control layout mechanisms you should be able to achieve a much nicer result then just expecting to see "BLANK" area next the single owner.
Hope this helps
RegardsAaron
sorry i completely misread your question. I thought you were talking about he appointment owner width (in which most cases dictates the width of the appointment objects - unless they overlap).