[Solved] Word Wrapping on a Label

Post

Posted
Rating:
#1 (In Topic #880)
Enthusiast
AndyGable is in the usergroup ‘Enthusiast’
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

<IMG src="https://www.algpos.co.uk/webimage/NPoS_QuickSellMenu.png"> </IMG>

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.
Online now: No Back to the top

Post

Posted
Rating:
#2
Regular
vuott is in the usergroup ‘Regular’
Uhmm … maybe you should use the <COLOR color="#800000">TextLabel</COLOR> Class, as this Class has the ".Wrap" Property.

https://gambaswiki.org…omp/gb.qt4/textlabel/wrap

Europaeus sum !

<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Online now: No Back to the top

Post

Posted
Rating:
#3
Enthusiast
AndyGable is in the usergroup ‘Enthusiast’

vuott said

Uhmm … maybe you should use the <COLOR color="#800000">TextLabel</COLOR> Class, as this Class has the ".Wrap" Property.

https://gambaswiki.org…omp/gb.qt4/textlabel/wrap

Thank you that worked a treat :)
Online now: No Back to the top
1 guest and 0 members have just viewed this.