Grid doesn't repaint (2 problems)

I have a problem with wxGrid not repainting itself when moved offscreen.
The demo does this as well. It happens when you have the Windows setting
"Show window contents while dragging" turned on. (I am running win98se).

- Run the demo.
- Select any of the grid demos.
- Drag the window off the bottom of the screen and then back on
  again
- It will do a redraw if you resize the window

There is also another bug that occurs if you have a dual monitor setup,
and is independent of the "show window contents setting".

- Run the demo
- Select any of the grid demos
- Move the window so that a portion of it is on the second monitor
- Move around another window over the top of the grid. Newly exposed
  areas do not redraw.
- The grid will not redraw ANY of itself if even a tiny portion is on
  the second display. If you move the entire window back onto the
  first display then it will redraw newly exposed areas.

Roger

Roger Binns wrote:

I have a problem with wxGrid not repainting itself when moved offscreen.
The demo does this as well. It happens when you have the Windows setting "Show window contents while dragging" turned on. (I am running win98se).

- Run the demo.
- Select any of the grid demos.
- Drag the window off the bottom of the screen and then back on
  again
- It will do a redraw if you resize the window

I don't see this with any version of Windows that I have to test here, including Win98se.

There is also another bug that occurs if you have a dual monitor setup,
and is independent of the "show window contents setting".

- Run the demo
- Select any of the grid demos
- Move the window so that a portion of it is on the second monitor
- Move around another window over the top of the grid. Newly exposed
  areas do not redraw.
- The grid will not redraw ANY of itself if even a tiny portion is on
  the second display. If you move the entire window back onto the
  first display then it will redraw newly exposed areas.

Anybody else have a dual monitor setup that can try this one?

···

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

I don't see this with any version of Windows that I have to test here,
including Win98se.

I tested on 3 different machines. Here are the results:

  - Win98SE, Nvidia Card, Dual Monitor - shows problem
  - Win98SE, Nvidia Card, Single Monitor - shows problem
  - WinXp Home, Nvidia Card, Single and Dual monitor - doesn't show problem

I've attached a 4kb gif showing a window I just dragged off the bottom
of the screen and back on again. (NB it is really important that you
have "show window contents while dragging" on.)

You can see that the button does redraw properly. This is some sort of
problem only with wxGrid.

Roger

Roger Binns wrote:

I don't see this with any version of Windows that I have to test here, including Win98se.

I tested on 3 different machines. Here are the results:

  - Win98SE, Nvidia Card, Dual Monitor - shows problem
  - Win98SE, Nvidia Card, Single Monitor - shows problem
  - WinXp Home, Nvidia Card, Single and Dual monitor - doesn't show problem

I've attached a 4kb gif showing a window I just dragged off the bottom
of the screen and back on again. (NB it is really important that you
have "show window contents while dragging" on.)

Which version of wxPython?

···

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

> I've attached a 4kb gif showing a window I just dragged off the bottom
> of the screen and back on again. (NB it is really important that you
> have "show window contents while dragging" on.)

Which version of wxPython?

2.4.0.2
2.4.0.4
2.3.4.2

I couldn't find any other versions to try.

Python version is 2.2.2. I also have win32all installed if it makes any
difference.

Roger

Roger Binns wrote:

I've attached a 4kb gif showing a window I just dragged off the bottom
of the screen and back on again. (NB it is really important that you
have "show window contents while dragging" on.)

Which version of wxPython?

2.4.0.2
2.4.0.4
2.3.4.2

I couldn't find any other versions to try.

Python version is 2.2.2. I also have win32all installed if it makes any
difference.

Weird, but I am seeing it now on the same machine that I didn't see it on last week. I havn't touched the machine since then...

Looks like for some reason it is not getting the paint events when brought back on screen, but I don't know what would cause that. I can't duplicate it with other window types either... Please enter a bug report about this, using the wxMSW specific category.

···

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