Skip to main content


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] Thu, 24 November 2005 02:20 Go to next message
Eclipse UserFriend
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 15:03 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
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: Sat Apr 20 04:20:25 GMT 2024

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

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

Back to the top