Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Using events and methods for Flowchart in IE (Read 4219 times)
Rujuta
Guest


Using events and methods for Flowchart in IE
Nov 7th, 2005 at 4:53pm
Print Post  
I created flowchart control in IE using <object> tag. How to use the methods like createBox, createArrow etc. for this control? Also how  and where to code the events like box_clicked, box_collapsed etc.

Thanx
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Using events and methods for Flowchart in IE
Reply #1 - Nov 8th, 2005 at 6:01am
Print Post  
If you set the control's ID attribute to 'fcx', then you can invoke the control methods from JavaScript or VBScript like this:

fcx.PreviewDiagram();

You can use the EVENT html tag to handle events, e.g.

<SCRIPT FOR = fcx EVENT = BoxClicked language="javascript">
// the script goes here
</SCRIPT>

Stoyan
  
Back to top
 
IP Logged
 
Rujuta
Guest


Re: Using events and methods for Flowchart in IE
Reply #2 - Nov 8th, 2005 at 4:53pm
Print Post  
Thanks a lot.
One more query. How to refer to the arguments of the event? e.g. boxClicked event. How can I get the box that is clicked?

thanks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Using events and methods for Flowchart in IE
Reply #3 - Nov 9th, 2005 at 5:59am
Print Post  
Specify the arguments in the EVENT attribute, e.g.:

<SCRIPT FOR="fcx" EVENT="BoxCreated(box)">
box.FillColor = 256 * 256 * 255
</SCRIPT>

Stoyan
  
Back to top
 
IP Logged
 
Rujuta
Guest


Re: Using events and methods for Flowchart in IE
Reply #4 - Nov 9th, 2005 at 2:54pm
Print Post  
Thanks once again. That's really very helpful.

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