Never mind,
I MD5'd a string based on a dump of all the values, it should do the
trick.
- Tom
On 16/02/2007, at 12:04 PM, Tom Benson wrote:
I have a canvas subclass that draws itself based on the values of a
dictionary property.
These values could be changed at any time by any running part of my
application, so trying to trigger manual updates is a real
headache. At the moment I put everything in the paint event, but it
keeps refreshing and eats nearly half of my CPU...
So, what I want to do is create a separate property called
lastRenderHash and save the state of the dictionary each time I
render the image.
Then I put this in the paint event:
If me.dictionary.hash <> me.lastRenderHash then
Update
end
Any other ideas??
- Tom
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>