Wrap text

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
RICHARD RUTA
Profound User
Posts: 40
Joined: Mon Apr 26, 2010 11:53 am
First Name: RICHARD
Last Name: RUTA
Company Name: WILLAM B. MEYER
Phone: 203.984.7175
Address 1: 255 LONG BEACH BLVD
City: STRATFORD
State / Province: Connecticut
Zip / Postal Code: 06615
Country: United States
Contact:

Wrap text

Post by RICHARD RUTA »

To maintain an existing file structure in an application, I'd like to create an entry screen field that automatically wraps at 80 characters: much the way this screen works. Then for presentation, I'd like the same text automatically to wrap at 40 characters. Is this possible?
User avatar
Rob
Profound Logic Staff Member
Posts: 135
Joined: Fri Jan 04, 2008 12:12 pm
First Name: Rob
Last Name: Ferguson
Company Name: Profound Logic Software
Contact:

Re: Wrap text

Post by Rob »

Use a Text Area widget to enter a long field. The width of the widget along with the font size and average word length will determine where the text wraps. Bind the value property of the text area to a long field (for example 1000A) and split this into multiple 80A lengths with RPG logic. Concatenate the 80A fields to build the 1000A field to redisplay.

Of course the point where the text wraps on screen will bear no relationship to where the RPG code will split or concatentate the field into multiple 80A fields.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests