Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Box In Container (Read 4351 times)
jcincanton
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Nov 8th, 2008
Box In Container
Nov 14th, 2008 at 3:00pm
Print Post  
Do you have a simple example (VB6) where you create boxes in a single flow, then place them in a container box? Having a little trouble with the putincontainer method.

Example, create 5 boxes with some text, create one more box and place the 5 in the 6th box.

Do you have a place on your site with examples not addressed in the samples you include with the control?

Thanks for the assist.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Box In Container
Reply #1 - Nov 14th, 2008 at 3:52pm
Print Post  
Container boxes are available only in the Pro edition:
https://www.mindfusion.eu/FCXdemoPro.zip

You must call the method on the child box and pass the container as argument:

Code
Select All
Private Sub btnContainer_Click()
	fcx.ClearAll
	Dim b As box
	Dim i As Integer

	For i = 1 To 5
		Set b = fcx.CreateBox(0, 0, 30, 30)
		b.Text = Str(i)
	Next

	Dim c As box
	Set c = fcx.CreateBox(0, 0, 30, 30)
	For Each b In fcx.boxes
		b.PutInContainer c
	Next
End Sub
 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
jcincanton
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Nov 8th, 2008
Re: Box In Container
Reply #2 - Nov 14th, 2008 at 5:11pm
Print Post  
Stoyo,

I have the Pro edition.

Your example helped - I had the impression based on your help file the container argument had to be enclosed in parentheses.

I am still getting weird behavior:
Arrow lines outside of the container
Inability to resize the container or move objects within

I have a small example I can send. Are you willing to examine it and help me out?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Box In Container
Reply #3 - Nov 16th, 2008 at 9:06am
Print Post  
We implemented container boxes after a customer's specification. They use them to design racks, so containers size to their contents and you can only change the position of a child box in the column or row, but not place it at arbitrary location within the container. We can extend this to let you move child boxes to any location in the container, after we finish with the v4.2 release.

Stoyan
  
Back to top
 
IP Logged
 
jcincanton
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 5
Joined: Nov 8th, 2008
Re: Box In Container
Reply #4 - Nov 16th, 2008 at 1:33pm
Print Post  
Stoyo,


Thank you for getting back to me.

This was not a request for a new feature. I just recently purchased the control and I'm trying to learn its capabilities and trade-offs of various approaches before implementation. Your control is already rich with features - just trying to learn the best uses of it before commiting to a design.

It would seem it is better to use another flow control as a container than a box - more flexibility on its placement.

What about the other questions I asked - do you have a location on your forum/site where you have public access to examples in addition to the samples included with the download of the control?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Box In Container
Reply #5 - Nov 17th, 2008 at 11:21am
Print Post  
You might search for "_samples" using the search link above. That's the folder where we upload some samples to illustrate features discussed in the forum posts. Unfortunately there is no central location that catalogs and describes them. You might also look for "code:" to find posts that contain code snippets.

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


D'Oh!

Posts: 59
Joined: Sep 3rd, 2008
Re: Box In Container
Reply #6 - Dec 2nd, 2008 at 4:56pm
Print Post  
Currently I hide the boxes into a container but it could be useful to move them as I wish.

Could you implement this feature after v4.2?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Box In Container
Reply #7 - Dec 3rd, 2008 at 6:26am
Print Post  
Yes, we can Wink
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint