Dynamically resizing Text widget [message #98615] |
Tue, 30 August 2005 16:03 |
Eclipse User |
|
|
|
Originally posted by: freshtasty.hotmail.com
Hello,
I have a Text widget within witch I show warning messages.
This Text widget is part of a dialog that has other Labels and Texts. The
Text widget has the wrap property and can show messages having more than one
line. Using a bit of calculus, I resize the Text widget's height (not it's
length cause that is not what the user wants) when Modify events occur on
the widget.
The problem is that the jface dialog and Group containing
the Text widget don't resize after a shell pack. Even more troubling, after
resizing my Text widget, a shell pack undoes my resizing and leaves my Text
widget showing part of the message.
I'm rather dumbfounded and don't understand how actually
works sizing with SWT. I've bin working on this for days now. Anyone can
explain what I'm doing wrong?
Thanks
Sebastien
|
|
|
Powered by
FUDForum. Page generated in 0.12296 seconds