David LeBlanc wrote:
I have the following layout:
wxApp
wxFrame
wxSplitter
wxPanel
wxEditableListBox
wxPanel
(other controls. contents set on wxEditableListBox sel.)How can I make the wxEditableListBox conform to the size (and resized size)
of the panel? The controls in the other panel have a static location.
If the only thing on that side of the splitter is going to be the wxEditableListBox then leave the panel out and the splitter will manage its size and position. Or you can just put it in a sizer and assign the sizer to the panel like anywhere else.
I also have the problem that I used the wxPython demo as a hint on how to
create the EditableListBox, but unlike the demo, it won't respond to any of
the buttons in the control to add/delete etc. There don't seem to be any
event handlers for those in the demo code... How do I make those work?
It should be automatic... You may want to check that the parentage of the windows are as described above. I've seen behaviour like this when a window's parent was screwed up and eventhough the window appeared to be on top the events were going to another window.
···
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!