rtf problem - nonbreaking hyphen breaks plus other problems

G

Guest

I'm using a read only rich text box to format some text. In the text is a
series of phone numbers separated by a comma and a space. I don't want the
phone numbers to be split. Here's what I've done. I replace "-" with "\_"
which is supposed to be the non-breaking hyphen. If I look at the string
before it is stored in the rtf it looks like "555\_201\_1234, 555\_201\_1111,
". In the rtf it looks like "555-201-1234, 555-201-1111, ". When the form is
displayed at the normal size the series of phone numbers are displayed
correctly except that the space after the comma is at the beginning of the
next line. When the form is made larger the scroll bar is removed and the
series of phone numbers split on one the hyphens and the space after the
comma ends up at the beginning of the line screwing up the format. Only the
scroll bar When the form is restored to it's original size the scroll bar is
missing until you set the cursor in the rtf box and move the cursor down.
 
P

Pete

A bit confusing to read: try using paragraphs next time so the problem is easier to grasp.

Ok, we have an example of the input numbers. Pls give a clean example of the intended output.

I am not sure the issue with the scroll bar, but lets deal with the formatting first...

/Pete.


| I'm using a read only rich text box to format some text. In the text is a
| series of phone numbers separated by a comma and a space. I don't want the
| phone numbers to be split. Here's what I've done. I replace "-" with "\_"
| which is supposed to be the non-breaking hyphen. If I look at the string
| before it is stored in the rtf it looks like "555\_201\_1234, 555\_201\_1111,
| ". In the rtf it looks like "555-201-1234, 555-201-1111, ". When the form is
| displayed at the normal size the series of phone numbers are displayed
| correctly except that the space after the comma is at the beginning of the
| next line. When the form is made larger the scroll bar is removed and the
| series of phone numbers split on one the hyphens and the space after the
| comma ends up at the beginning of the line screwing up the format. Only the
| scroll bar When the form is restored to it's original size the scroll bar is
| missing until you set the cursor in the rtf box and move the cursor down.
| --
| tsiGeorge
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top