Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Arrow Colour on client side (Read 1898 times)
vk23942
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 16
Joined: Oct 18th, 2007
Arrow Colour on client side
Oct 19th, 2007 at 2:51am
Print Post  
Hi,
Is it possible to change the colour of each arrow drawn on the flowchart using client side scripting.

Regards,

Vikas Kapoor
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrow Colour on client side
Reply #1 - Oct 19th, 2007 at 4:39am
Print Post  
Hi,

This changes the color of the clicked arrow to red -

Code
Select All
function arrowClicked(arrow, mouseX, mouseY, button)
{
    var scriptHelper = <%= fc.AppletElement %>.getScriptHelper();
    arrow.setPen(scriptHelper.createPen(0, 255, 0, 0));
}
 



The createPen arguments are (float width, int red, int green, int blue). For this to work you need to assign "arrowClicked" to the ArrowClickedScript property.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint