Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic About FollwMasterRotation Usage. (Read 2612 times)
parkwonwoo
Junior Member
**
Offline


Open the Podbay Doors
HAL!

Posts: 61
Joined: Dec 8th, 2006
About FollwMasterRotation Usage.
Feb 5th, 2007 at 12:04am
Print Post  
Code
Select All
var
  i: byte;
  box, box1: IBoxItem;
  gr1: IGroupItem;
begin
  //fcx.Graphics.StartUp(geGDiPLus);

  box:=fcx.CreateBox(0, 0, 210, 210);
  box.Tag:=0; // background Box

    gr1:=fcx.CreateGroup(box);
  for i :=1  to 5 do
  begin
    box1:=fcx.CreateBox(random(100), random(100), 10, 10);
    gr1.AttachProportional(box1, box1.left, box1.top, 10, 10);

  end;
  with box do
  begin
    RotateContents :=  true;
    fillcolor:=clYellow;
    ZIndex := 0;
    Style:=bsShape;
    Locked := true;
  end;
  gr1.FollowMasterRotation:=true;

  box.RotateContents:=true;
  box.RotationAngle:=30;
 



What's wrong above code ?
  

OS: WinXP sp2&&RAD: Borland Delphi7, C++Builder6, JBuilder9&&FrameWork: VCL+Win32 or J2SE&&FCX: FCX 4.1.x
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: About FollwMasterRotation Usage.
Reply #1 - Feb 5th, 2007 at 6:08am
Print Post  
FollowMasterRotation won't make the attached boxes rotate, in case that's what you expect.

If AttachToCorner is used, an attached box will follow the rotated corner point of the master box by following the rotated point translation, but staying horizontal (e.g. imagine a Ferris wheel). With AttachProportional, again the attached box won't be rotated - it will just update its position according to the rectangle that fully bounds the rotated master box.

We plan to make FollowMasterRotation an enumeration property and add an option to change the rotation angle of the attached items, but I don't know when our developers will get to this.

Stoyan
  
Back to top
 
IP Logged
 
Martin Mc
YaBB Newbies
*
Offline



Posts: 11
Location: Bracknell
Joined: Oct 23rd, 2008
Re: About FollwMasterRotation Usage.
Reply #2 - Oct 23rd, 2008 at 11:40am
Print Post  
Has anyone got this to work ?

I have been doing all the maths myself, but then i saw this.
I cannot get it to work though. Anyone got a solution ?
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint