Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Refreshing of node after some properties changed (Read 1611 times)
MUDO
Junior Member
**
Offline



Posts: 90
Joined: Nov 29th, 2008
Refreshing of node after some properties changed
May 20th, 2009 at 8:58pm
Print Post  
Hi.

I have my own editor for properties of nodes (color, caption,...).

If I change TextColor property of TableNode it changes visually after I click to diagram or perform some action with diagram. I totaly understand why Smiley

Is there any sophisticated way how to refresh only this node from form? Because now Im calling  Me.fcDiagramView.Refresh() but that is not very smart.

Thx.


...MUDO...
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Refreshing of node after some properties chang
Reply #1 - May 21st, 2009 at 5:13am
Print Post  
Hi,

Call diagram.Invalidate(table.GetRepaintRect()). The TextColor setter should do that, but it seems our developer forgot to call the repaint method.

Stoyan
  
Back to top
 
IP Logged
 
MUDO
Junior Member
**
Offline



Posts: 90
Joined: Nov 29th, 2008
Re: Refreshing of node after some properties chang
Reply #2 - May 21st, 2009 at 6:53am
Print Post  
Hi.

Function GetRepaintRect has parameter includeConnected As Boolean. In help is stated "true if related items should be considered too; otherwise, false." What does it mean "related items"? Attached via AttachTo function?

Thanks for your answer Smiley

...MUDO...
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Refreshing of node after some properties chang
Reply #3 - May 21st, 2009 at 11:08am
Print Post  
Hi,

Yes, attached nodes and also links connected to the table.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint