Hey, all–
I’m working on a custom container control, basically a new wx.Panel that I can put on a frame that contains various other controls. However, I want to draw some stuff on it for some special behaviors. Soo, I would like to set the area that the sizers and such are free to start filling in.
I just can’t quite figure out how to do that
I can override DoGetClientSize from wx.PyPanel and shrink the size of what the available area is, but I can’t set where it should /start/. Looking around, it seems I want to override wxWindow.GetClientAreaOrigin … but I can’t (I tried subclassing from wx.pyWindow too and calling DoGetClientAreaOrigin, still no go.)
Am I going about this the right way?
Basically, if I have a square control that is (100, 100) in size, I don’t want the top 10 pixels to ever get messed with. It isn’t a part of the “client area”. I can probably fudge it with some careful sizer-border doohickery, but that just doesn’t quite seem right.
Thanks in advance.
–S