Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Another ShapeDesigner question (Read 1804 times)
jstraylor
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Dec 28th, 2006
Another ShapeDesigner question
Aug 7th, 2007 at 5:02pm
Print Post  
Good day,

I have a new question / possible problem related to the shape designer.

I want to be able to set the ShapeDesignerCtrl tool to a non-square set of dimensions (a rectangle) so that I can allow my users to edit shapes in scale relative to the actual exterior dimensions of the object.  (Picture a rectangular room, say 8' x 12 in size).  They would then be able to create, for example, a diagonal wall from the 6' mark on the bottom of the rectangle to the 6' mark on the right side of the triangle.  This would translate to a line segment starting at 100, 75 on the bottom and terminating at 100, 50 on the right side.

I have all of the code to convert our measurements to percentages, etc. but I need to be able to set the ShapeDesignerCtrl to the proper size (in any coordinate system that is allowable, say pixels) and allow the user to make the segments as described above.

Is there a way to do this??  Or do you have a suggestion as to how to create the shape as percentages on the ShapeDesignerCtrl and be able to keep the aspect ratio the same when the new shape is pasted on to a non-square box.

Thanks,
Jeff
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Another ShapeDesigner question
Reply #1 - Aug 8th, 2007 at 6:50am
Print Post  
Good day,

That's not supported at this time. I can send you the designer control source code if you wish to implement it yourself.

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


I love YaBB 1G - SP1!

Posts: 50
Joined: Dec 28th, 2006
Re: Another ShapeDesigner question
Reply #2 - Aug 8th, 2007 at 9:09am
Print Post  
Stoyo,

I would be more than happy to implement that feature, and possibly a couple of others that I might need, if you would send me the source.

I will, of course, send back the changed source with my changes clearly marked so that you can include them in the control for others to use.

Thank you,
Jeff
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Another ShapeDesigner question
Reply #3 - Aug 8th, 2007 at 9:28am
Print Post  
Hi Jeff,

Here is the source code:
https://mindfusion.org/_samples/ShapeDesignerCtrl.zip

We used to distribute it as a sample project, but forgot to include it in the installation again after our last source code reorganization.

Quote:
I will, of course, send back the changed source with my changes clearly marked so that you can include them in the control for others to use.


That would be great  8)

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