gettingstarted
[Top] [All Lists]

Refreshing ListBox - InvalidateCell

To: "RB-GettingStarted" <gettingstarted at lists dot realsoftware dot com>
Subject: Refreshing ListBox - InvalidateCell
From: "RBNUBE" <rbnube at mabenterprises dot com>
Date: Thu, 31 Mar 2005 23:54:53 -0500
Delivered-to: gettingstarted at lists dot realsoftware dot com
Importance: Normal
I have a listbox that I am using to display thumbnails of images.
Before moving part of my code to a thread, it displayed fine after a
short initial apparent freeze.  After moving it to a thread, it fills
the list without the apparent freeze, but once it's finished, things are
a little out of place in some of the rows.  This is especially
noticeable when using a grid in the ListBox.  The only ways I know to
"refresh" the appearance of a ListBox is to use InvalidateCell or to set
each row in the ListBox to selected and then to deselect, thereby
forcing a redraw.

InvalidateCell doesn't seem to be doing the job here.  Selecting then
deselecting is, but doesn't seem very efficient.  Is there another way?
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>
  • Refreshing ListBox - InvalidateCell, RBNUBE <=