> Hi,

Hi Carl, and sorry about the delay, I was off on a trip


> I have a suggestion for improving wxTreeListCtrl.
> 
> I wanted to add tool tips to a wxTreeListCtrl but had a little
> trouble that I have since worked around.  I want the tool tips to be
> based on the item I'm hovering over.

> . . . . . 

I find it a very good idea. In fact, IMHO the functionality should be
supported directly by the control, without you having to worry about
gory details --although I am very thankful that you already did the
job :-)

Would you be happy with the following methods ?

  // set default tip (header, blank area)
  treeListCtrl->SetToolTip(const wxString &tip);
  // set tip for specific row
  treeListCtrl->SetToolTip(const wxTreeItemId& item, const wxString &tip);

If so I would merge your code into the control and add these 2 public methods

> This leads me to a final question:  Why does wxTreeListCtrl have
> public member functions GetHeaderWindow() and GetMainWindow()?
> Since the classes they returned are only defined inside treelistctrl.cpp,
> I don't see how they do me any good.  I could have accomplished 
> both of the changes I suggest above if I could get at these classes,
> but I cannot.  Am I missing something obvious?

Ahum... maybe not everything in the class definition makes sense anymore, the
 control went through several hands... Ideally you should not have to access
 the underlying windows, i.e. those methods should not be public. Like you 
pointed out they are useless outside treelistctrl.cpp, so I will change them
to protected. Thanks for the remark!

Ronan



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
wxCode-users mailing list
wxCode-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxcode-users

Reply via email to