Continuing slider sizing problem

I have spent yet more time on this, with no success but now at least with a
pretty definite example of the problem. The code below uses a function
that is generated by wxDesigner. When run within wxDesigner, the slider in
the dialog sizes correctly. When extracted to a separate file and run via
the usual wxApp code at the end of this file, the slider does not size
correctly (it looks like it sizes to a width of only 100 instead of the
specified 400).

Looks like there is a bug in wxMSW's wxSlider::DoSetSize that is triggered when it is called after the initial creation of the slider, such as with sizers. I can fix it for the next 2.4.x, but unfortunatly I can't figure out a work-around for using it with 2.4.2.4.

So basically, it looks like "Works within wxDesigner,
doesn't work outside of wxDesigner." What am I doing wrong here? What is
wxDesigner doing that the wxApp code is not (or vice versa)? This is the
first time I've seen anything like this.

It could be because wxDessigner is linking with a different version of wxWidgets (probably 2.5.1).

ยทยทยท

gary.h.merrill@gsk.com wrote:

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!