|Dynamically resizing a CLabel based on text input? [message #723171]
||Wed, 07 September 2011 18:19
Registered: September 2011
I'm fairly new to SWT so I'd appreciate any guidance on my issue.
I have a Label who's text changes programmatically, so the size isn't fixed. I want to place an image using CLabel immediately to the right of the text, but I can't figure out how to programmatically resize the Label control so that the image moves according to the size of the text.
I also don't want to put the text and image in the same CLabel control because I may have to programmatically move the image next to another control.
I looked through the Layout class, but the examples I saw seemed to assume a fixed control size.
Powered by FUDForum
. Page generated in 0.08270 seconds