Skip to main content



      Home
Home » Newcomers » Newcomers » Dynamically resizing Text widget
Dynamically resizing Text widget [message #98615] Tue, 30 August 2005 16:03
Eclipse UserFriend
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
Previous Topic:adding documentation to eclipse help system
Next Topic:Where can I find org.eclipse.update.ui.forms
Goto Forum:
  


Current Time: Mon Jul 14 22:03:46 EDT 2025

Powered by FUDForum. Page generated in 0.12296 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top