Re: Wrapping Text

2020-07-22 Thread Terry Heaford via use-livecode
It’s actually the x axis labels on a column chart. I currently have them truncating but thought I could have them enlarge the field height. The width is decided by the column width. LC rotate widget is not a solution as its not complete and unreliable. I am currently trying canvasjs charts in

Re: Wrapping Text

2020-07-22 Thread J. Landman Gay via use-livecode
Right, removing characters from the end until it fits is the only way I know of. It's faster if you use the templateField and measureText. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 22, 2020 8:36:59 AM Terry Heaford via

Re: Wrapping Text

2020-07-22 Thread Tore Nilsen via use-livecode
In order for this to work you should also take into consideration various rules for hyphenating words in the appropriate language. As these rules varies between languages, this can become a very complex function. If the text that goes into the field is static then I would either reduce the font

Re: Wrapping Text

2020-07-22 Thread Terry Heaford via use-livecode
I presume therefore that the only way to resolve a single long word in a field would be to have a repeat loop removing characters from the end until it fits then insert a cr and put the characters removed on the new line Terry > On 22 Jul 2020, at 14:12, Craig Newman via use-livecode >

Re: Wrapping Text

2020-07-22 Thread Craig Newman via use-livecode
What Klaus said is true, but this still all depends on the state of the “dontWrap” property. If “true” text will run on forever, regardless of whether a particular line contains spaces or not. So what is the state of that property in your field? Anyway, a little playing around with dontWrap

Re: Wrapping Text

2020-07-22 Thread Klaus major-k via use-livecode
Hi Craig, > Am 22.07.2020 um 14:56 schrieb Craig Newman via use-livecode > : > > Hi. > > Sorry, it is "dontWrap", not "donttWrap". > The field is not truncating, except visually. The text runs out the right > side of the field's visible extent. Setting the "dontWrap" to false will > force

Re: Wrapping Text

2020-07-22 Thread Craig Newman via use-livecode
Hi. Sorry, it is "dontWrap", not "donttWrap". The field is not truncating, except visually. The text runs out the right side of the field's visible extent. Setting the "dontWrap" to false will force the field to wrap the text. You must remember that this is not the same as adding carriage

Re: Wrapping Text

2020-07-22 Thread Craig Newman via use-livecode
Check out the “donttWrap” and “formattedWidth” properties. Craig > On Jul 22, 2020, at 5:55 AM, Terence Heaford via use-livecode > wrote: > > If you have a field with one long word that is wider than the field it does > not wrap, it truncates. > > Is there a solution to this? > > >

Wrapping Text

2020-07-22 Thread Terence Heaford via use-livecode
If you have a field with one long word that is wider than the field it does not wrap, it truncates. Is there a solution to this? Thanks Terry ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe