Skip to main content



      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 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 10:03 Go to previous message
Eclipse UserFriend
> 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: Mon Jul 07 21:32:55 EDT 2025

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

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

Back to the top