Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Shell resize decoration
Shell resize decoration [message #446812] Thu, 02 December 2004 17:15 Go to next message
Max is currently offline MaxFriend
Messages: 28
Registered: July 2009
Junior Member
Is it possible to add a "resize decoration" to all resizable shells?

What I'm talking about is the small pattern in the lower right corner of
eg. DirectoryDialog's (on Windows).

--
Regards Max rotvel AT bolignet-aarhus DOT dk
Re: Shell resize decoration [message #446817 is a reply to message #446812] Thu, 02 December 2004 21:05 Go to previous messageGo to next message
Stefan Zeiger is currently offline Stefan ZeigerFriend
Messages: 102
Registered: July 2009
Senior Member
Max wrote:

> Is it possible to add a "resize decoration" to all resizable shells?
>
> What I'm talking about is the small pattern in the lower right corner of
> eg. DirectoryDialog's (on Windows).

SWT does not support Windows' native size grip directly, i.e. you cannot
ask for it to be shown. It will be shown automatically when you have a
Scrollable widget with both horizontal and vertical scrollbar in the
bottom right corner of a window. I've written a custom SizeGrip control
which is available from http://www.novocode.com/swt.

--
Stefan Zeiger http://www.szeiger.de http://www.novocode.com
My SWT controls: http://www.novocode.com/swt
Re: Shell resize decoration [message #446819 is a reply to message #446817] Thu, 02 December 2004 21:48 Go to previous messageGo to next message
Max is currently offline MaxFriend
Messages: 28
Registered: July 2009
Junior Member
In article <coo03d$4v3$1@www.eclipse.org>, szeiger@novocode.com says...
> > Is it possible to add a "resize decoration" to all resizable shells?
> >
> > What I'm talking about is the small pattern in the lower right corner of
> > eg. DirectoryDialog's (on Windows).
>
> SWT does not support Windows' native size grip directly, i.e. you cannot
> ask for it to be shown.

It would be nice with something like SWT.RESIZABLE that asks for a grip
if the platform supports it, and if not defers to SWT.RESIZE.

> It will be shown automatically when you have a
> Scrollable widget with both horizontal and vertical scrollbar in the
> bottom right corner of a window.

I'm not sure, but it sounds like you're saying that it ia possible to
force the grip to appear by making your widget scrollable - is that
right?

> I've written a custom SizeGrip control
> which is available from http://www.novocode.com/swt.

Thanks, I'll check it out.

Regards
--
Regards Max rotvel AT bolignet-aarhus DOT dk
Re: Shell resize decoration [message #446821 is a reply to message #446819] Thu, 02 December 2004 22:55 Go to previous message
Stefan Zeiger is currently offline Stefan ZeigerFriend
Messages: 102
Registered: July 2009
Senior Member
Max wrote:

> I'm not sure, but it sounds like you're saying that it ia possible to
> force the grip to appear by making your widget scrollable - is that
> right?

Both scrollbars need to be visible to make the size grip appear.
Otherwise there isn't any free space where it could be displayed. You
can try this by resizing a content assist window in Eclipse.

--
Stefan Zeiger http://www.szeiger.de http://www.novocode.com
My SWT controls: http://www.novocode.com/swt
Previous Topic:JOB: seeking plugin/RCP developer in Raleigh, NC
Next Topic:Looking of working TableTreeViewer Exeample
Goto Forum:
  


Current Time: Sun Oct 25 18:05:38 GMT 2020

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

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

Back to the top