[racket] Repaint issue

From: Kieron Hardy (kieron.hardy at gmail.com)
Date: Tue Feb 7 14:07:25 EST 2012

Hi,

In playing with the code (test.rkt) from this post (
https://groups.google.com/forum/?fromgroups#!topic/plt-scheme/HOlM4qKkI74),
I notice issues with the refresh/repaint of the text fields of the
remaining items after a delete of one of the items.

After starting the code (via 'run' button from DrRacket), I add a few new
items (pressing one of the insert buttons several times), fill in the
values for the new items (see capture1.png), and then delete one of the
items (by pressing its delete button).

After the frame has been re-displayed, sometimes the text fields are left
blank (see capture2.png) until each field is clicked (receives focus and is
repainted) and only then is the value shown. Other times the text fields
have some part of the value displayed (contents only partially painted? or
partially erased? -- see capture3.png) until the text field is clicked.

I can replicate the issue readily although the actual results differ,
suggesting to me some sort of race condition.

I am using a recent nightly build -- version 5.2.1.3--2012-01-21(9d48858/a)
-- on a fairly heavily laden 64-bit quad-core vista laptop.

Any ideas?

Cheers,

Kieron.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20120207/98c83845/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture1.PNG
Type: image/png
Size: 16661 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20120207/98c83845/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture2.PNG
Type: image/png
Size: 15355 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20120207/98c83845/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture3.PNG
Type: image/png
Size: 15390 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20120207/98c83845/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.rkt
Type: application/octet-stream
Size: 735 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20120207/98c83845/attachment-0001.obj>

Posted on the users mailing list.