On 10/8/05, Otto Wyss <ott...@or...> wrote:
>
>
> >
> > Can anyone duplicate this or suggest a fix? Before I spend time looking
> > at the problem, I wanted to check with this list.
> >
> This looks as if the Refresh is limited to just 2 items (or one item
> plus some overlapses). Check if the Refresh is done completely when
> expanding an item. Currently I can't test it myself on Linux.
>
> O. Wyss
Thanks for the reply. I found a way to fix this but I'm sure it's not ideal=
.
The problem is in treelistctrl.cpp's wxTreeListMainWindow::RefreshSubtree()
method.
If I replace the GetVirtualSize() call with GetClientSize(), it works. For
some
reason, GetClientSize() says the virtual window's height is ~32 instead of
(say) 300.
For my code, I've just done this for now:
int cw =3D 0;
int ch =3D 0;
#ifdef __WXGTK__
GetClientSize( &cw, &ch );
#else
GetVirtualSize( &cw, &ch );
#endif
Since I don't understand why GetVirtualSize() isn't working, I won't
consider this
a real fix but just a workaround.
Thanks,
carl
|