[Solved] Word Wrapping on a Label

Post your Gambas programming questions here.
Post Reply
AndyGable
Posts: 359
Joined: Wednesday 2nd December 2020 12:11am
Location: Northampton, England
Contact:

[Solved] Word Wrapping on a Label

Post 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.
Last edited by AndyGable on Tuesday 2nd August 2022 12:14pm, edited 1 time in total.
vuott
Posts: 262
Joined: Wednesday 5th April 2017 6:07pm
Location: European Union

Re: Word Wrapping on a Label

Post 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
Europaeus sum !

Amare memorentes atque deflentes ad mortem silenter labimur.
AndyGable
Posts: 359
Joined: Wednesday 2nd December 2020 12:11am
Location: Northampton, England
Contact:

Re: Word Wrapping on a Label

Post 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 :)
Post Reply