Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Bounds of Timetable & Group Headers (Read 4370 times)
tomk
YaBB Newbies
*
Offline


Yaos!

Posts: 29
Joined: Apr 25th, 2006
Bounds of Timetable & Group Headers
Apr 25th, 2006 at 11:03am
Print Post  

I need to know the rectangle in client and/or screen terms encompassed by the entire timetable header, the entire "subheader" area including group headers (by contact or resource for example) and just the subregions of the subheader area (all group headers going across columns and all "all day" areas across columns).

I would like to eliminate and/or customize the default Planner.NET tooltips for the timetable and group headers depening on the state of my UI.

Can you guys point me to the right way to do this?  You added the GetItemBounds method for us which was very helpful.  Is there a similar method for getting these regions either individually or collectively?

Excellent control - we are making good use of it already but will probably bug you for a few more questions like this.
Thank you
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Bounds of Timetable & Group Headers
Reply #1 - Apr 25th, 2006 at 11:21am
Print Post  
We are glad to hear you like the control. Cheesy

We can add an event for the timetable headers similar to the event Calendar.ItemTooltipDisplaying, which is currently fired for items. It will be raised just before the tooltip for a column is displayed to let you customize the tooltip's contents.

Currently there are no means for obtaining the bounds of calendar subelements, but we can implement a new method for this purpose. The method will receive a single parameter, specifying the type of subelement whose bounds to retrieve and will return a Rectangle structure.

Would those improvements be satisfactory for your needs?

Meppy
  
Back to top
 
IP Logged
 
tomk
YaBB Newbies
*
Offline


Yaos!

Posts: 29
Joined: Apr 25th, 2006
Re: Bounds of Timetable & Group Headers
Reply #2 - Apr 25th, 2006 at 11:27am
Print Post  
That would be fantastic.  Thank you so much for the quick response
  
Back to top
 
IP Logged
 
tomk
YaBB Newbies
*
Offline


Yaos!

Posts: 29
Joined: Apr 25th, 2006
Re: Bounds of Timetable & Group Headers
Reply #3 - Apr 27th, 2006 at 6:26pm
Print Post  

The methods you have added in the test drop are working very well.  I would merely suggest to add Contact in a more complete version (although I know how to get Contact, if you're adding Resource reference to the TooltipEventArgs you might as well add Contact too).

Again this is not a critical request as I now have the information I need to adapt our UI according to these events.

In a somewhat unrelated note (but it does have to do with Timetable headers), is there anyway to supress the auto-select of all the cells in a Column when you click its header.  For example, if I single-left click on a Contact in the Timetable when in group by Contacts mode, can I stop Planner from selecting all the TT cells?

Thanks again-
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Bounds of Timetable & Group Headers
Reply #4 - Apr 28th, 2006 at 4:40am
Print Post  
The property TooltipEventArgs.Resource references the appopriate type of resource, depending on the current group type of the calendar and the element whose tooltip is being displayed. Thus, if you are in a GroupByContact view and the TooltipEventArgs.Resource is not null for the element CalendarElement.TimetableColumnHeader, you can safely assume that TooltipEventArgs.Resource is a reference to a Contact and cast it accordingly. Something like this:

Code
Select All
if (e.Resource != null)
  e.Tooltip = (e.Resource as Contact).FirstName; 



As for the header click behavior, there is currently no way to prevent selecting all cells in the corresponding day. We would add means to control this in future releases.

Meppy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint