Benjamin, First, thanks for the bounding box hit-test code -- I haven't had a chance to take a good look at it, and I am about to go on a long vacation, but I do intent to check it out.
Benjamin Jessup wrote: > I want to add an editable text box to the floatcanvas, but have the > editing take place right on the floatcanvas. Is the best way to do this > with a GUI mode that accepts keyboard inputs and then updates the text > box with each EVT_CHAR event (Cursor position inside the box with a > bracket cursor would also have to be managed)? > > Or, would it be easierto actually draw a wx.TextCtrl object in the > FC.ScaledTextBox()? I suspect that it would be easier to put a wx.TextCtrl in (or on top of) the ScaledTextBox. That way, you'd get all the TextCtrl goodies (cut and paste, etc) all at once. Otherwise, you be re-implementing it from scratch. You should be able to get the pixel coords and all, so that you can put the wxTextCtrl right on top of the ScaledTextBox. One downside is that the text may get rendered a bit differently, as ScaledTextbox does its own text wrapping, etc. But I don't expect that that would be too annoying to your users. -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
