Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ShapeNode.Text could not display Chinese character (Read 5136 times)
winnor
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Nov 17th, 2011
ShapeNode.Text could not display Chinese character
Nov 17th, 2011 at 11:05am
Print Post  
I am trying the ShapeNode, I set the Text property of it to be Chinese Character string.  On the DiagramView, the string could not be shown.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ShapeNode.Text could not display Chinese chara
Reply #1 - Nov 17th, 2011 at 11:13am
Print Post  
What Font and ClientSideMode values are you using?
  
Back to top
 
IP Logged
 
winnor
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Nov 17th, 2011
Re: ShapeNode.Text could not display Chinese chara
Reply #2 - Nov 17th, 2011 at 11:51am
Print Post  
Stoyo, thanks for your reply.

here is,  this.diagramView.InplaceEditFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
        

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ShapeNode.Text could not display Chinese chara
Reply #3 - Nov 17th, 2011 at 12:05pm
Print Post  
Hi,

InplaceEditFont is not used to render ShapeNode's Text. If you are not setting the diagram's Font property, then you are probably with the default Arial font. In addition, what ClientSideMode value are you using? If it's ImageMap, check these topics:

http://mindfusion.eu/Forum/YaBB.pl?board=fcnet_disc;action=display;num=128754611...
http://mindfusion.eu/Forum/YaBB.pl?board=netdg_disc;action=display;num=127462984...

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


I love YaBB 1G - SP1!

Posts: 4
Joined: Nov 17th, 2011
Re: ShapeNode.Text could not display Chinese chara
Reply #4 - Nov 17th, 2011 at 12:16pm
Print Post  
Stoyo,
Thanks a lot.

I did not set ClientSideMode. I could not find any poperty of DigramView or Diagram called ClientSideMode. I am using NETDiagram dlls.  Any idea?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ShapeNode.Text could not display Chinese chara
Reply #5 - Nov 17th, 2011 at 12:19pm
Print Post  
ClientSideMode is a property of DiagramView. The default value is JavaApplet - do you see the Java cup logo where the diagram should appear while loading the page?
  
Back to top
 
IP Logged
 
winnor
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Nov 17th, 2011
Re: ShapeNode.Text could not display Chinese chara
Reply #6 - Nov 17th, 2011 at 12:24pm
Print Post  
Stoyo,

Great thanks.

Finally, I set ShapeNod.Font = new Font("Arial Unicode MS", 8.25F);
Then all works.

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