philip wiebe wrote:
> I'm a new user, and lost as to where to start with this 
> customization. (after a lot searching for similar questions with no results)
> 
> Is it possible to use a wxPanel as the basis of other controls to use on 
> top of a canvas?

I've thought that that would be a good feature to have, but never got 
around to trying to implement it.

> if so, where would I start to implement this?

I'd start by looking at the DrawObject base class, to see what you need. 
I'm afraid I didn't do good job of putting in stubs for all the required 
methods, so also look at at least one DrawObject sub-class to see 
everything that is required.

The big one is the "_Draw" method. Every DrawObject must have one. The 
trick is that I'm not sure how to implement this for a wx.Window -- I 
don't think you can pass in a DC to a wx.Window to tell it where to draw 
itself, so this will take some experimenting.

I'd start be making your wx.Window a child of the FloatCanvas. Then in 
the _Draw method you can set it's position and size and Show() it, to 
see how that works.

Event handling will also be different, but you can probably just use the 
regular wx.Window event handling.

Let us know what you figure out


-Chris



-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

[email protected]
_______________________________________________
FloatCanvas mailing list
[email protected]
http://paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas

Reply via email to