[wx-dev] tree control & drawing
Alan Shouls
alan at softpress.com
Tue Oct 3 05:16:29 PDT 2006
Hi Vadim,
> OTOH I admit that even after I looked at the screenshot I
>still don't understand why do we need a bitmap here at all: don't
>you just draw a colour gradient? And if so, why not use the
>appropriate wxDC method?
For sure you could use a gradient. Generally UI artwork comes in as
bitmap images - it makes changing the UI easier. This particular
gradient came from a shipping App. I don't know what Apple's idea for
the selection for "bigish things" in lists will be under OSX in a
year's time but it may well be different.
> Exactly. While I won't say that the design of the generic
>wxTreeCtrl is ideal, you should take into account that it's not
>really simple to improve it because as soon as you make this
>PaintItem() virtual method part of public class interface you'll
>also need to implement it for Win32 (which is definitely possible
>but someone still needs to do it) and, in the future, for Mac OS
>native data browser based implementation too.
OK - well what I will do is to get the interface for this as seems to
make sense and then have a go at the windows end later.
Best regards
Alan Shouls
More information about the wx-dev
mailing list