From: Tierra <et...@gm...> - 2005-12-02 05:27:07
|
On 12/1/05, Otto Wyss <ott...@or...> wrote: > Tierra wrote: > >reproduced by adding an EnsureVisible call to the > >AppFrame::OnInsertItem method in the wxTreeListCtrl sample in CVS on > >the new wxTreeListItem returned from InsertItem(). > > I've added the EnsureVisible call after the Insert in OnInsertItem but > can't understand your problem. As long as there is a current item I can > insert or add as much as I want. If the current item is outside the > window (make the window smaller) EnsureVisible scrolls it into the > window. Can you give me a better test description? Looking at your changes here... http://cvs.sourceforge.net/viewcvs.py/wxcode/wxCode/components/treelistctrl= /samples/treelisttest/treelisttest.cpp?r1=3D1.21&r2=3D1.23 That is all that was needed, and looks correct (the second commit you made anyway, v1.23, not v1.22). If that's not giving you issues, I'll need more time to look this over when I get back into work tomorrow. Now that I think about it, it's possible it only happens when both the current item and the new one are scrolled well out of the repaint area. I was testing by selecting the last item in the default tree in the sample, resizing the window to maybe about a quarter to a half of the size so the selected item was out of the view, then selecting insert from the menu. If you still can't come up with something, I'll put in some further testing tomorrow. I realized that I didn't mention I'm on MSW in any of these posts or the patch description if that makes any difference (I can't see how it would though). Regards, Bryan Petty |