Control rpeinting when scrollin

Kit Bishop kit at bishop.net.nz
Mon Apr 30 15:13:29 PDT 2007


Just checked again in case I was going mad (it happens!) but can confirm 
that it only works if I have it in both places.

Best regards,
Kit Bishop

Vadim Zeitlin wrote:
> On Tue, 01 May 2007 09:52:08 +1200 Kit Bishop <kit at bishop.net.nz> wrote:
>
> KB> However, I currently have found a method of making it work.  In both the 
> KB> constructor of the frame and in the OnSize method, I have put the code:
> KB> 
> KB>     wxSizer     *sizer;
> KB>     sizer = m_scrolledframe->GetSizer();
> KB>     if (sizer != NULL)
> KB>         sizer->SetSizeHints(m_scrolledframe);
> KB> 
> KB> This seems to work - maybe I should have had it all along.
>
>  It does make sense to call SetSizeHints() from the ctor but not from
> EVT_SIZE handler. It's really strange if doing it changes anything.
>
>  Regards,
> VZ
>
>   




More information about the wx-users mailing list