#166 redraw bug if MainForm moved outside main screen and resized

v2.3
open
nobody
None
5
2009-08-17
2009-08-17
No

I would like to reopen Bug 1697374. I can reproduce it with the downloaded sample application.

Move the MainForm outside main screen (just a bit is enough) and then resize it. Sometimes there are strange redraw bugs. Doesn't happen all the time. If it doesn't happen, then you need to close and restart the application.

Discussion

  • Eric Schmitt

    Eric Schmitt - 2009-08-17

    redraw_bug

     
  • Eric Schmitt

    Eric Schmitt - 2009-08-17

    If the bug doesn't happen with first try, then it won't happen no matter how often you try it.

    You need to restart the application until it happens with the first try.

     
  • Andreas Burkard

    Andreas Burkard - 2009-08-26

    In Dockpanel there is a m_dummyControl, which is used in InvalidateWindowRegion() to trigger the update.
    The dummy control is placed in the top left corner of the DockPanel, with a size of 1 x 1 pixel.

    If the DummyControl is out of screen bounds, the update isn't triggered.

    As a workaround we added the following line in the Dockpanel constructor:

    m_dummyControl.Dock = DockStyle.Top;

    Regards,
    Andreas

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks