attaching an unknown control like wxglcanvas
Robin Dunn
robin at alldunn.com
Wed Aug 9 13:43:06 PDT 2006
Eric wrote:
> It doesn't not have to be wxglcanvas control. The following code also
> places the control in this case a button in the top left hand corner
> over other controls. It is clearly not suppose to be there based on
> what XRCed is showing me, and I do get a pink box where the contol
> should be when I don't call AttachUnknonwControl. How do I make my
> unknown control obey the sizers it is suppose to be in based on the xrc
> file?
When attaching an unknown control XRC makes a panel to insert in the
place the unknown control is supposed to be, and then reparents the
unknown so it's parent is that panel. If your control is not showing up
at the right place then my guess is that the reparent operation is not
succeeding. Please let us know which platform and version you are using.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wx-users
mailing list