Thanks for responding. It's an interesting answer.... I use GetStringWidth for my single line output, but it's a bit more tricky when it's multi-line. In this case, it's a variable list of people's names, which could spread over 3 or 4 lines. This makes this method tricky.. I'll see what i can do,
Thanks again.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have certain pairs of words (forename+surname) in my HTML which should not be wrapped.
I've tried putting the names in a non-breaking span....
But this is ignored, i.e. it still splits after "Jessica", if she is too close to the end to fit in "Jones", when I output using WriteHTMLCell()
I've tried all sorts of non-breaking space characters (nbsp;... chr(160..) etc But the name is always split
Help! Any suggestions gratefully received.
In my code I use GetStringWidth to check the string will fit, or make changes based on the Width, before I do the WriteHTML.
Thanks for responding. It's an interesting answer.... I use GetStringWidth for my single line output, but it's a bit more tricky when it's multi-line. In this case, it's a variable list of people's names, which could spread over 3 or 4 lines. This makes this method tricky.. I'll see what i can do,
Thanks again.