wxListCtrl refresh problem

Hi,

Since 2.5.1.5 and 2.5.2.7 under Windows, there is a refresh problem on wxListCtrl.
The wxListCtrl is not refresh all the time, when I change application, and I come back on
my wxPython application. A part of this window or all the window is not repainted.
I saw the same bug in the demo.

Thanks

webmaster wrote:

Hi,

Since 2.5.1.5 and 2.5.2.7 under Windows, there is a refresh problem on wxListCtrl.
The wxListCtrl is not refresh all the time, when I change application, and I come back on
my wxPython application. A part of this window or all the window is not repainted.

Which version of Windows?

I saw the same bug in the demo.

I don't.

···

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

Robin Dunn a e'crit :

webmaster wrote:

Hi,

Since 2.5.1.5 and 2.5.2.7 under Windows, there is a refresh problem on wxListCtrl.
The wxListCtrl is not refresh all the time, when I change application, and I come back on
my wxPython application. A part of this window or all the window is not repainted.

Which version of Windows?

Windows 98, 2000, XP (and maybe all the Windows ...)
I don't test on Windows Me, but I think that this problem must be the same.
I haven't this bug on Linux, and MacOS. The same code with wxPython 2.4.x
works fine.

This bug has been reported by our users.

(your work is great, congratulations)

···

I saw the same bug in the demo.

I don't.

webmaster wrote:

Robin Dunn a e'crit :

webmaster wrote:

Hi,

Since 2.5.1.5 and 2.5.2.7 under Windows, there is a refresh problem on wxListCtrl.
The wxListCtrl is not refresh all the time, when I change application, and I come back on
my wxPython application. A part of this window or all the window is not repainted.

Which version of Windows?

Windows 98, 2000, XP (and maybe all the Windows ...)
I don't test on Windows Me, but I think that this problem must be the same.
I haven't this bug on Linux, and MacOS. The same code with wxPython 2.4.x
works fine.

This bug has been reported by our users.

(your work is great, congratulations)

I saw the same bug in the demo.

Does anybody else see this problem using the demo?

···

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

Robin Dunn wrote:

webmaster wrote:

Robin Dunn a e'crit :

webmaster wrote:

Hi,

Since 2.5.1.5 and 2.5.2.7 under Windows, there is a refresh problem on wxListCtrl.
The wxListCtrl is not refresh all the time, when I change application, and I come back on
my wxPython application. A part of this window or all the window is not repainted.

Which version of Windows?

Windows 98, 2000, XP (and maybe all the Windows ...)
I don't test on Windows Me, but I think that this problem must be the same.
I haven't this bug on Linux, and MacOS. The same code with wxPython 2.4.x
works fine.

This bug has been reported by our users.

(your work is great, congratulations)

I saw the same bug in the demo.

Does anybody else see this problem using the demo?

I'm _not_ seeing it under windows XP, Python 2.3.2, wxPython 2.5.1.5u. Covering then exposing the wxListCtrl in the demo seems to work fine.

-tim

···

I am not seeing it using Python 2.3.4, wx 2.5.2 on win XP. I'll try
it out on my 2K rig at home tonight.

···

On Thu, 26 Aug 2004 09:15:10 -0700, Tim Hochberg <tim.hochberg@cox.net> wrote:

Robin Dunn wrote:

> webmaster wrote:
>
>> Robin Dunn a e'crit :
>>
>>> webmaster wrote:
>>>
>>>> Since 2.5.1.5 and 2.5.2.7 under Windows, there is a refresh problem
>>>> on wxListCtrl.
>>>> The wxListCtrl is not refresh all the time, when I change
>>>> application, and I come back on
>>>> my wxPython application. A part of this window or all the window is
>>>> not repainted.

>>> Which version of Windows?
>>>
>> Windows 98, 2000, XP (and maybe all the Windows ...)
>> I don't test on Windows Me, but I think that this problem must be the
>> same.
>> I haven't this bug on Linux, and MacOS. The same code with wxPython
>> 2.4.x
>> works fine.
>>
>> This bug has been reported by our users.

>>>> I saw the same bug in the demo.

> Does anybody else see this problem using the demo?

I'm _not_ seeing it under windows XP, Python 2.3.2, wxPython 2.5.1.5u.
Covering then exposing the wxListCtrl in the demo seems to work fine.

--

    Jeff

Can you reproduce the bug using the attached file?

simplelist.py (430 Bytes)

···

On Thu, 26 Aug 2004 16:40:43 +0200, webmaster <webmaster@keyphrene.com> wrote:

Windows 98, 2000, XP (and maybe all the Windows ...)
I don't test on Windows Me, but I think that this problem must be the same.
I haven't this bug on Linux, and MacOS. The same code with wxPython 2.4.x
works fine.

--
Peter Damoc
Hacker Wannabe
http://www.sigmacore.net/

"Robin Dunn" <robin@alldunn.com> wrote in message
news:412E0660.6040107@alldunn.com...

webmaster wrote:
> Robin Dunn a e'crit :
>
>> webmaster wrote:
>>
>>> Hi,
>>>
>>> Since 2.5.1.5 and 2.5.2.7 under Windows, there is a refresh problem
>>> on wxListCtrl.
>>> The wxListCtrl is not refresh all the time, when I change
>>> application, and I come back on
>>> my wxPython application. A part of this window or all the window is
>>> not repainted.
>>
>>
>>
>> Which version of Windows?
>>
> Windows 98, 2000, XP (and maybe all the Windows ...)
> I don't test on Windows Me, but I think that this problem must be the

same.

> I haven't this bug on Linux, and MacOS. The same code with wxPython

2.4.x

> works fine.
>
> This bug has been reported by our users.
>
> (your work is great, congratulations)
>
>>> I saw the same bug in the demo.

Does anybody else see this problem using the demo?

I do not see the problem on W2K or WIN98SE running Python 2.3.4 and wxPython
2.5.2.7

Can the problem be reproduced with the demo in Safe Mode ?

Is the demo using the "Original" as the active version ? (Nice feature of
the wxPython demo on the "Demo Code" tab.)

Stephen D Evans

Robin Dunn a e'crit :

webmaster wrote:

Robin Dunn a e'crit :

webmaster wrote:

Hi,

Since 2.5.1.5 and 2.5.2.7 under Windows, there is a refresh problem on wxListCtrl.
The wxListCtrl is not refresh all the time, when I change application, and I come back on
my wxPython application. A part of this window or all the window is not repainted.

Which version of Windows?

Windows 98, 2000, XP (and maybe all the Windows ...)
I don't test on Windows Me, but I think that this problem must be the same.
I haven't this bug on Linux, and MacOS. The same code with wxPython 2.4.x
works fine.

This bug has been reported by our users.

(your work is great, congratulations)

I saw the same bug in the demo.

Does anybody else see this problem using the demo?

no bug in demo (2.5.2.7), my last test shown this bug on 2.5.1.5.
I tried to reduce my code without sucess. The same code work fine
with 2.4.x.

On my application, the bug is visible when the wxListCtrl keeps the focus.
To see the bug, I proceed like this:
set the focus on wxListCtrl
change application
come back on wxPython application

with this lines, I avoid the bug:

.....
self.list.Bind(wx.EVT_SET_FOCUS, self.OnFocus) # only windows platforms
.....
def OnFocus(self, evt):
wx.CallAfter(self.Refresh)
evt.Skip()

http://www.keyphrene.com/wxpython/test.jpg (the bug in action)