Control rpeinting when scrollin

Kit Bishop kit at bishop.net.nz
Mon Apr 30 14:52:08 PDT 2007


Thanks for your reply.

So far I have been unable to reproduce the problem in a simple example - 
it may be something to do with the complexity of nesting of my sizers.

However, I currently have found a method of making it work.  In both the 
constructor of the frame and in the OnSize method, I have put the code:

    wxSizer     *sizer;
    sizer = m_scrolledframe->GetSizer();
    if (sizer != NULL)
        sizer->SetSizeHints(m_scrolledframe);

This seems to work - maybe I should have had it all along.

Best regards,
Kit Bishop

Vadim Zeitlin wrote:
> On Sun, 29 Apr 2007 18:10:57 +1200 Kit Bishop <kit at bishop.net.nz> wrote:
>
> KB> If I maximize the main frame, some of the controls within the scrolled 
> KB> window get redrawn in the wrong place.
>
>  This looks like a wx bug, so I'd like to fix it but I'd really need a
> simple piece of code showing it. Ideally a patch for the scroll or
> scrollsub sample -- could you please check if you can manage to reproduce
> the problem there?
>
>  Thanks,
> VZ
>
>   




More information about the wx-users mailing list