wxSizerItem used for painted (solid) areas

ATS asteinarson at gmail.com
Sat Mar 15 15:57:36 PDT 2008


> ATS wrote:
> > Type B items are very useful for representing small bits
> > and pieces like grippers, edges and micros buttons. Using
> > a wxWindow for each such item is too heavy and really not
> > needed.
> 
> For the record, I think you're seriously abusing wxSizerItem here and 
> wxWindow is, in fact, exactly what you should use for them.

Hmmm.. deriving a class from wxSizerItem, calling the function 
wxSizerItem::GetRect() and painting that area on a DC inside a 
wxWindow, it's an example of using an API. Possibly in a new 
way but certainly nothing more than that. 

Regards
// ATS






More information about the wx-dev mailing list