Elliot, I've cc'd this to the floatcanvas mailing list, as I like to have this sort of thing in the archive.
> I’ve been using your FloatCanvas for a little project of mine, and have > been fairly satisfied with the quality of the module. I'm glad it's working for you -- can you tell me more about what you are doing? I like to know how it's been used. > One issue I ran into is that I wanted to handle enter and tab keys, but > couldn’t pass the wx.WANTS_CHARS style to the underlying Panel through > the FloatCanvas constructor. The following patch works for me (although > I don’t suggest that you apply it as it changes the default behavior). Yes, I"m not sure I'd want that as a default. > Is there a reason why you don’t provide a style keyword for the > FloatCanvas constructor? an oversight -- I've just added **kwargs, so that it, and others could get passed through. However, there are issues with NavCanvas -- in that case, which Window would you want it applied to? The NavCanvas itself, or the FloatCanvas Panel? Actually, I took a look at the code, and NavCanvas passes any kwargs on to its FloatCanvas, so that should work, too. Another possible solution is to use wxWindow::SetWindowStyleFlag to set a style later on. It apparently doesn't work for all styles, but it may be worth a try for this. -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
