Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic DocPtToClientPt() Error --; (Read 2348 times)
parkwonwoo
Junior Member
**
Offline


Open the Podbay Doors
HAL!

Posts: 61
Joined: Dec 8th, 2006
DocPtToClientPt() Error --;
Dec 14th, 2006 at 5:36am
Print Post  
MyCode Here:

Code
Select All
private void button6_Click(object sender, System.EventArgs e)
{

System.Int32 x,y;
System.Int32 px, py;
x=300;
y=300;
FC1.CreateBox(x,y,10,10);
FC1.DocPtToClientPt( x, y, px, py);  // Here Error!
FC1.Visible=false;

Graphics g = this.CreateGraphics();
Pen pen = new Pen(Color.Blue, 1);
g.DrawRectangle(pen, px-5, py-5, px+5, py+5);
}
 


- Error: It can't to convert from 'int' to 'out int'.

What's the matter ?
  

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: DocPtToClientPt() Error --;
Reply #1 - Dec 14th, 2006 at 5:55am
Print Post  
Try this:

FC1.DocPtToClientPt( x, y, out px, out py);

If your application is being developed in .NET, you might find it more convenient to use our FlowChart.NET control, instead of the FlowChartX ActiveX one:

https://mindfusion.eu/FCNetDemo.zip

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


Open the Podbay Doors
HAL!

Posts: 61
Joined: Dec 8th, 2006
Re: DocPtToClientPt() Error --;
Reply #2 - Dec 14th, 2006 at 11:08pm
Print Post  
Thanks! Everytime of fast answer.

it works well.

Lips Sealed
  

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