Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » TitleAreaDialog Message Not Wrapping
TitleAreaDialog Message Not Wrapping [message #440437] Fri, 30 July 2004 02:56 Go to next message
eclipse is currently offline eclipseFriend
Messages: 19
Registered: July 2009
Junior Member
I have created a number of dialogs using TitleAreaDialog as the base.
These are working well with one exception. Some of the dialogs wrap
the text correctly that was set using setMessage. Some of the dialogs
do NOT wrape and cause the dialog width to be extended so that the
text of the setMessage can be displayed as one long line.

My next step is to trace through the TitleAreaDialog class to see if I
can determine what is happening but I thought I would ask if anyone
has seen this same problem?
Re: TitleAreaDialog Message Not Wrapping [message #440476 is a reply to message #440437] Mon, 02 August 2004 16:21 Go to previous messageGo to next message
Tiberiu Caprita is currently offline Tiberiu CapritaFriend
Messages: 68
Registered: July 2009
Member
Yes, I got it too.
It seems that if you don't give a withHint to the Window (main composite
LayoutData), the general behaviour is to grow the window length.
Hint: use "\n" in your messsages.

Regards,
Tiberiu


eclipse@rick_no_austin_spam.net wrote:

> I have created a number of dialogs using TitleAreaDialog as the base.
> These are working well with one exception. Some of the dialogs wrap
> the text correctly that was set using setMessage. Some of the dialogs
> do NOT wrape and cause the dialog width to be extended so that the
> text of the setMessage can be displayed as one long line.

> My next step is to trace through the TitleAreaDialog class to see if I
> can determine what is happening but I thought I would ask if anyone
> has seen this same problem?
Re: TitleAreaDialog Message Not Wrapping [message #440492 is a reply to message #440476] Tue, 03 August 2004 00:14 Go to previous message
eclipse is currently offline eclipseFriend
Messages: 19
Registered: July 2009
Junior Member
Thanks. I'll give that a try. Don't know why I didn't think to use \n
in my message since that's exactly what I would have done in a Windows
MFC application.

Thanks, again.

On Mon, 2 Aug 2004 16:21:01 +0000 (UTC), capritat@hotmail.com (Tiberiu
Caprita) wrote:

>Yes, I got it too.
>It seems that if you don't give a withHint to the Window (main composite
>LayoutData), the general behaviour is to grow the window length.
>Hint: use "\n" in your messsages.
>
>Regards,
>Tiberiu
>
>
>eclipse@rick_no_austin_spam.net wrote:
>
>> I have created a number of dialogs using TitleAreaDialog as the base.
>> These are working well with one exception. Some of the dialogs wrap
>> the text correctly that was set using setMessage. Some of the dialogs
>> do NOT wrape and cause the dialog width to be extended so that the
>> text of the setMessage can be displayed as one long line.
>
>> My next step is to trace through the TitleAreaDialog class to see if I
>> can determine what is happening but I thought I would ask if anyone
>> has seen this same problem?
>
Previous Topic:open another window does not work
Next Topic:menu listener question
Goto Forum:
  


Current Time: Thu Apr 25 08:33:01 GMT 2024

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

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

Back to the top