Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic What FCX version is suitable for C++builder6? (Read 3872 times)
parkwonwoo
Junior Member
**
Offline


Open the Podbay Doors
HAL!

Posts: 61
Joined: Dec 8th, 2006
What FCX version is suitable for C++builder6?
Feb 22nd, 2007 at 6:57am
Print Post  

What FCX version is suitable for C++builder 6 ?

Thanks in advance.
  

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: What FCX version is suitable for C++builder6?
Reply #1 - Feb 22nd, 2007 at 8:32am
Print Post  
If I remember correctly, C++ Builder generates the wrapper classes for FlowChartX with some compilation errors in them. You will have to edit the wrappers to fix the errors. E.g. there is an error shown for FontPtr - you can fix it by changing FontPtr to Font*.
  
Back to top
 
IP Logged
 
parkwonwoo
Junior Member
**
Offline


Open the Podbay Doors
HAL!

Posts: 61
Joined: Dec 8th, 2006
Re: What FCX version is suitable for C++builder6?
Reply #2 - Feb 22nd, 2007 at 11:33pm
Print Post  
Thanks. I Fixed it.

Code
Select All
IFontDispPtr >> IFontDisp*
and
IPictureDispPtr >> IPictureDisp*

 

  

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


Open the Podbay Doors
HAL!

Posts: 61
Joined: Dec 8th, 2006
Re: What FCX version is suitable for C++builder6?
Reply #3 - Feb 23rd, 2007 at 3:09am
Print Post  
Is there any "C++Builder for FCX" Sample codes?

In Quick Start Guide of FCX Manual, C++Builder's Chapter is not included.

Thanks in advance.
  

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: What FCX version is suitable for C++builder6?
Reply #4 - Feb 23rd, 2007 at 6:15am
Print Post  
We do not have any C++ Builder samples available at this time.
  
Back to top
 
IP Logged
 
parkwonwoo
Junior Member
**
Offline


Open the Podbay Doors
HAL!

Posts: 61
Joined: Dec 8th, 2006
Re: What FCX version is suitable for C++builder6?
Reply #5 - Feb 26th, 2007 at 6:48am
Print Post  
My Example of C++Builder6 Here:
I hope Helpful to others.

Code
Select All
// Object Declare
IBoxItemPtr box1, box2;
IArrowItemPtr arr1, arr2;

box1=FCX->CreateBox(100, 100, 10, 10);
box2=FCX->CreateBox(200, 200, 10, 10);

arr1=FCX->CreateArrow(box1, box2);

// GDI Plus
FCX->Graphics->StartUp(geGdiPlus);

// Initialize
  FCX->BoxFrameColor=clBlack;
  FCX->ArrowColor=clBlack;

  FCX->MeasureUnit=uPixel;

// Box Decoration
  box1->Style=1;  // ellipse
  box1->set_PenWidth(2);
  box1->set_FillColor(clYellow);
  box1->set_FrameColor(clBlue);

// Arrow Decoration & Event Handlig
void __fastcall TForm1::FCXArrowSelected(TObject *Sender, IArrowItem *arrow)
{
  arrow->Color=clRed;
  arrow->PenWidth=1;
  arrow->PenStyle=3;
  arrow->ArrowHead=ahTriangle;
  arrow->ArrowBase=ahTriangle;
}

// Text Attach to Box
void __fastcall TForm1::FormCreate(TObject *Sender)
{
  IBoxItemPtr aa, bb;
  WideString ss;

  aa=FCX->CreateBox(200,200, 10, 10);
  aa->Tag=365;
  ss=IntToStr(aa->Tag);
  bb=FCX->CreateBox(aa->left, aa->top, 60, 30);
  bb->set_Text(ss);
  bb->Transparent=true;
  bb->Locked=true;
  bb->IgnoreLayout=true;

  FCX->CreateGroup(aa)->AttachToCorner(bb, 0);
}

// Multiple Box
  IBoxesPtr boxes;

  boxes = FCX->SelectedBoxes;
  for(int i=0;i<boxes->get_count();i++)
  {
	box1 = boxes->get_Item(i);
	box1->set_PenWidth(3);
	box1->set_FillColor(0xFF00FF);
	box1->set_FrameColor(0xFF0000);
  }

 



C++Builder has the same VCL architecture of delphi.

So, FCX Usage of C++Builder is almost same as delphi's one !

  

OS: WinXP sp2&&RAD: Borland Delphi7, C++Builder6, JBuilder9&&FrameWork: VCL+Win32 or J2SE&&FCX: FCX 4.1.x
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint