If you notice carefully, you'll find
wxGROW has been used. But wxWidgets manual says following..
... that the window will preserve it is original size, wxGROW flag (same as wxEXPAND) forces the window to grow with the sizer
It can be a problem. IMHO, they should be replaced with
wxEXPAND.
I tried to fix this problem several times. But I couldn't find a good solution.
In the latest trial, I used
wxScrolledWindow as parent to the notebook. But the dialog ended up being wide.
biplab: you're right. one way around might be to specify a max height for the listbox of, say, 500 pixels?
Yes, it can be done. But again it may restrict the view in large resolution.
May be we've to come to a compromise.