Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Freshman:how set TextColor in NetDiagram (Read 2840 times)
123danian
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Aug 27th, 2009
Freshman:how set TextColor in NetDiagram
Aug 28th, 2009 at 6:46am
Print Post  
i am using .NET 3.5 NETDiagram ,the ClientSideMode="JavaApplet"; By using "ScriptHelper"(here thanks to To..),finally,i know how to SetFont,and SetShape,because the ScriptHelper provides according parameters for the function "SetFont" and "SetShape";
But ,now,i want to set shapenode text color in JavaScript.So,i find the function SetTextColor( Color value),and you can see the function has a parameter "Color",unfortunately,it seemingly that the ScriptHelper does not provide right member function for the "Color",,,then i do not know how to create an Color object for the "Color" parameter.

May someone can help me???
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Freshman:how set TextColor in NetDiagram
Reply #1 - Aug 28th, 2009 at 7:12am
Print Post  
Hi,

We have omitted adding a createColor method, but you could call ScriptHelper.createSolidBrush(r,g,b).getColor().

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
123danian
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Aug 27th, 2009
Re: Freshman:how set TextColor in NetDiagram
Reply #2 - Aug 28th, 2009 at 12:28pm
Print Post  
very thanks to you
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint