Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » JFace Dialog resizing
JFace Dialog resizing [message #289234] Tue, 02 August 2005 13:28 Go to next message
Eclipse UserFriend
Hi

I am using Eclispe Linux 3.1 GTK. When I subclass Dialog and
instantiate... the Dialog is NOT resizable. How can I force it to be
resizeable? [This should be the default behaviour from looking at the
code from Dialog from it is not working...] Wonder if this is just a GTK
thing on how it presents Dialogs.

-H
Re: JFace Dialog resizing [message #289240 is a reply to message #289234] Tue, 02 August 2005 14:10 Go to previous messageGo to next message
Eclipse UserFriend
Hugo A. Garcia:

Look at JFace Window, method setShellStyle


> I am using Eclispe Linux 3.1 GTK. When I subclass Dialog and
> instantiate... the Dialog is NOT resizable. How can I force it to be
> resizeable? [This should be the default behaviour from looking at the
> code from Dialog from it is not working...] Wonder if this is just a GTK
> thing on how it presents Dialogs.
>
> -H
Re: JFace Dialog resizing [message #289241 is a reply to message #289234] Tue, 02 August 2005 14:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lshah.vitria.com

Hugo A. Garcia wrote:
> Hi
>
> I am using Eclispe Linux 3.1 GTK. When I subclass Dialog and
> instantiate... the Dialog is NOT resizable. How can I force it to be
> resizeable? [This should be the default behaviour from looking at the
> code from Dialog from it is not working...] Wonder if this is just a GTK
> thing on how it presents Dialogs.
>
> -H

Use SWT.RESIZE style.

~Lokesh
Re: JFace Dialog resizing [message #289252 is a reply to message #289241] Tue, 02 August 2005 15:59 Go to previous message
Eclipse UserFriend
it works now...

I put in the constructor after it calls super the
this.setShellSytle(SWT.RESIZE);

it is weird since I do see that in the contructor for Dialog where you
pass a IShellProvider that it set SWT.DIALOG_TRIM which, unless I read
wrong, in Steve Northover's SWT book states that it should include
reszise with SWT.DIALOG_TRIM...

oh well... I will take a look at the definition of the constant but again

thanks it works.

-H

Lokesh Shah wrote:
> Hugo A. Garcia wrote:
>> Hi
>>
>> I am using Eclispe Linux 3.1 GTK. When I subclass Dialog and
>> instantiate... the Dialog is NOT resizable. How can I force it to be
>> resizeable? [This should be the default behaviour from looking at the
>> code from Dialog from it is not working...] Wonder if this is just a
>> GTK thing on how it presents Dialogs.
>>
>> -H
>
> Use SWT.RESIZE style.
>
> ~Lokesh
Previous Topic:Help with Online Documentation
Next Topic:Override "narrow_book.css" in context help?
Goto Forum:
  


Current Time: Mon Apr 28 02:30:20 EDT 2025

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

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

Back to the top