Page 1 of 1

[Solved] Word Wrapping on a Label

Posted: Tuesday 2nd August 2022 10:24am
by AndyGable
Hi Everyone

Just a Quick one

As you can see below I am working on a part of my program and I need some help

Image

The Description of the keys are loaded from the Database but I can not work out how to wrap the description

Example the Key that says "SSES BAKERY ITEMS" should acually say "WESSES BAKERY ITEMS" and the key that shows
"S FARMHOUSE FOODS" should say "19 GALES FARMHOUSE FOODS"

does anyone know if it is possible to word wrap the text either with in the sql command or when I show the description on the label.

Re: Word Wrapping on a Label

Posted: Tuesday 2nd August 2022 10:53am
by vuott
Uhmm ... maybe you should use the TextLabel Class, as this Class has the ".Wrap" Property.

https://gambaswiki.org/wiki/comp/gb.qt4/textlabel/wrap

Re: Word Wrapping on a Label

Posted: Tuesday 2nd August 2022 12:14pm
by AndyGable
vuott wrote: Tuesday 2nd August 2022 10:53am Uhmm ... maybe you should use the TextLabel Class, as this Class has the ".Wrap" Property.

https://gambaswiki.org/wiki/comp/gb.qt4/textlabel/wrap
Thank you that worked a treat :)