Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic text wrapping (Read 1112 times)
chieh
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 64
Joined: Aug 18th, 2010
text wrapping
Jan 13th, 2011 at 12:53pm
Print Post  
Hi,
In terms of text wrapping, Is there any way for the text wrapping not to break up complete words, but put on a new line?
The diagram we use is Java applet, and we define the text area for the shape by using shape designer.

For an example,
This is current situation:
Notification Rece
vied

Is it possible to have,

Notification
Recieved

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: text wrapping
Reply #1 - Jan 13th, 2011 at 2:14pm
Print Post  
Hi,

Try this:
Code
Select All
function onNodeCreated(sender, args)
{
	args.getNode().getTextFormat().setWrapAtCharacter(false);
	args.getNode().setText("Notification Recieved"); 



This should correspond to setting StringFormat.Trimming on the .NET side.

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