Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » non-rectangular window -switching
non-rectangular window -switching [message #464537] Wed, 23 November 2005 21:20 Go to next message
Eclipse User
Originally posted by: simon.guertin.usherbrooke.ca

Hello all,

I would like to replicate the behavior of being able to switch between a
normal window and a border-less non-rectangular window of my
application, a little bit like MSN Messenger and Windows Media Player. I
have seen that the Shell cannot change style at runtime, so I guess my
best bet is to hide my main window and display my rectangular window to
create the switch?

Anybody found another approach?

Is there also a way to resize a non-rectangular Shell?

thanks

Simon
Re: non-rectangular window -switching [message #464547 is a reply to message #464537] Thu, 24 November 2005 10:03 Go to previous message
Veronika Irvine is currently offline Veronika Irvine
Messages: 1272
Registered: July 2009
Senior Member
> Is there also a way to resize a non-rectangular Shell?

There is no default way. You need to designate a grab area and listen for
mouse events. You can change the cursor to SWT.CURSOR_SIZE* usig
shell.setCursor().

"Simon Guertin" <simon.guertin@usherbrooke.ca> wrote in message
news:dm3819$fdi$1@news.eclipse.org...
> Hello all,
>
> I would like to replicate the behavior of being able to switch between a
> normal window and a border-less non-rectangular window of my application,
> a little bit like MSN Messenger and Windows Media Player. I have seen that
> the Shell cannot change style at runtime, so I guess my best bet is to
> hide my main window and display my rectangular window to create the
> switch?
>
> Anybody found another approach?
>
> Is there also a way to resize a non-rectangular Shell?
>
> thanks
>
> Simon
Previous Topic:HelloWorld standalone: No text on Buttons or Labels
Next Topic:Problem passing a reference in a wizard
Goto Forum:
  


Current Time: Wed Aug 20 16:38:13 EDT 2014

Powered by FUDForum. Page generated in 0.01951 seconds