Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

DrawLabel wrapping

$
0
0
Dear Support,

We are trying to have a rectangle (with a border) in which we display an image and a label. We currently have implemented this using a DrawGroup + 3 children (DrawRect, DrawImage and DrawLabel) and it works.

Our biggest concern is that the label is always drawn in 1 line and it goes outside the rectangle zone of the group.

It's very important for us to have a way to ensure that the label stays inside its frame... How can we do that ? All your examples show the label below the shape, never inside...

-> There's no setWidth() in DrawLabel
-> We cannot use HTML in setContents()
-> setKeepInParentRect() does not help either

Many thanks,
Thomas

Viewing all articles
Browse latest Browse all 4756

Trending Articles