Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Iconnode in Containernode (Read 1348 times)
shu
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Aug 14th, 2009
Iconnode in Containernode
Aug 24th, 2009 at 10:18am
Print Post  
Hi

If I have a Iconnode in a Containernode and I minimize the containernode, the Iconnode is still visible.

No Problems with Shapenodes.

If I move the Container, the Iconnodes will alsoe move.

What I have to do, to set the Iconnodes in a Container as invisible, if i minimize the container?

Thank you and kind regards
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Iconnode in Containernode
Reply #1 - Aug 24th, 2009 at 1:30pm
Print Post  
Hi,

Add a ShouldRender() check at the top of the IconNode.Draw() implementation:

Code
Select All
public override void Draw(IGraphics graphics, RenderOptions options)
{
	if (!ShouldRender())
		return;
	...
}
 



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