Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Customize ContainerNode when folded ? (Read 4600 times)
yrauma
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 61
Joined: Mar 28th, 2010
Customize ContainerNode when folded ?
Mar 28th, 2010 at 9:54pm
Print Post  
Hello everyone !

I am currently working on an application using mainly shapeNode and ContainerNode.

We're note very happy with the way ContainerNode look when are folded (bar style), we would like this to look more squary, we mainly need to change the size...

I am unable to find how to do that !

Is it possible? If yes, how can I manage to do it?

Thanks a lot for the help !

Yrauma
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Customize ContainerNode when folded ?
Reply #1 - Mar 29th, 2010 at 5:37am
Print Post  
Hi,

Try setting the MinimumSize and CaptionHeight properties. When folded, the container's width is set to the one of MinimumSize, and its height is set to CaptionHeight. Otherwise MinimumSize specifies the minimum size of unfolded containers when AutoShrink is enabled.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
yrauma
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 61
Joined: Mar 28th, 2010
Re: Customize ContainerNode when folded ?
Reply #2 - Mar 29th, 2010 at 4:27pm
Print Post  
Hello Stoyan !

Thanks for your help.
Unfortunatly, this doesn't work...
Actually it works, but it also set this when the container is unfolded and it looks weird.. with a big button :s

I kinda succeed making this behavior by setting the Bounds when the container is folded... And set it back when unfolded. But it looks really hacky !

What do you think?
Thanks !
Amaury
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Customize ContainerNode when folded ?
Reply #3 - Mar 29th, 2010 at 6:47pm
Print Post  
I suppose we could add some kind of FoldedSize property, but its implementation won't be much different than yours 8)

You might also implement custom drawing for containers as in the sample below, which would let you draw a smaller caption bar disregarding the CaptionHeight value:
http://mindfusion.eu/Forum/YaBB.pl?board=fcnet_feat;action=display;num=125300120...

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


I love YaBB 1G - SP1!

Posts: 61
Joined: Mar 28th, 2010
Re: Customize ContainerNode when folded ?
Reply #4 - Mar 29th, 2010 at 7:37pm
Print Post  
Thanks a lot for your Help Stoyan !
I really appreciate it !


So far we have 2 valid solutions. I think I'm gonna stick with that... Anyway there is no other way to do that right?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Customize ContainerNode when folded ?
Reply #5 - Mar 30th, 2010 at 12:15pm
Print Post  
Here's a third one:
https://mindfusion.eu/_beta/fcnet534_foldedsize.zip

The Diagram class now has a FoldedContainerSize property. If it's set, folded containers will have the specified size, otherwise they will continue using CaptionHeight.

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


I love YaBB 1G - SP1!

Posts: 61
Joined: Mar 28th, 2010
Re: Customize ContainerNode when folded ?
Reply #6 - Mar 30th, 2010 at 4:29pm
Print Post  
WOW !

This is awesome !
Exactly what I needed ! How did you do that?

And thank you so much Stoyan Smiley

Amaury
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Customize ContainerNode when folded ?
Reply #7 - Mar 30th, 2010 at 4:51pm
Print Post  
Well, our developer added a couple of lines of code... 8)

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


I love YaBB 1G - SP1!

Posts: 61
Joined: Mar 28th, 2010
Re: Customize ContainerNode when folded ?
Reply #8 - Mar 30th, 2010 at 4:54pm
Print Post  
AHahah great !


Thanks a lot Smiley Im sure, everyone will enjoy that new functionality from now on !


I really appreciate your help !
Amaury
  
Back to top
 
IP Logged
 
yrauma
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 61
Joined: Mar 28th, 2010
Re: Customize ContainerNode when folded ?
Reply #9 - Mar 31st, 2010 at 11:00pm
Print Post  
Hello Stoyan !

I have a last question for you !
I still LOVE that new feature !

So my question is the following : "with this new feature, is there a way to set this foldedSize per Container ?"
I would like to be able to set some differend folded sizes Smiley


Thanks again.
I hope it's possible.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Customize ContainerNode when folded ?
Reply #10 - Apr 1st, 2010 at 7:46am
Print Post  
Hi Amaury ,

It's not possible. We can add per-container properties for the V5.3.5 release.

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


I love YaBB 1G - SP1!

Posts: 61
Joined: Mar 28th, 2010
Re: Customize ContainerNode when folded ?
Reply #11 - Apr 1st, 2010 at 2:32pm
Print Post  
OK !

I'll do with what I have so Smiley
Thanks a lot stoyan !
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint