Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Question about DiagramView.RecreateCacheImage (Read 1289 times)
CanadaProgrammer
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 113
Joined: Jun 30th, 2011
Question about DiagramView.RecreateCacheImage
Feb 15th, 2013 at 1:38am
Print Post  
hi
I try to call RecreateCacheImage method to make the background is what I want, but the background always is changed. I call RecreateCacheImage method in StarDraw method of Behavior class. Is there any smaple to show how to use this method?

Thanks a lot
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Question about DiagramView.RecreateCacheImage
Reply #1 - Feb 18th, 2013 at 9:23am
Print Post  
Hi,

The initial cache image is not created until StartDraw returns a non-null value, so you shouldn't need to recreate it from within the StarDraw override. You can call it from events such as NodeModifying or MouseMove when you need to update the appearance of items that are not modified by the current InteractionState, for example:

http://mindfusion.eu/Forum/YaBB.pl?num=1268747171/8#8
http://mindfusion.eu/Forum/YaBB.pl?num=1294675204/7#7

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint