Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to have window always on top of another
How to have window always on top of another [message #438937] Mon, 05 July 2004 14:34 Go to next message
Eclipse UserFriend
Originally posted by: yuraukar.hotmail.com

I am trying to achieve something like
a floating property window. This should
always be on top of its parent shell,
but of course not on top of other windows.

What is the recommended style of doing this
with SWT?
I tried to create a shell with given parent,
but this seems to have no effect.

Yuraukar
Re: How to have window always on top of another [message #438939 is a reply to message #438937] Mon, 05 July 2004 15:08 Go to previous messageGo to next message
Heitzso is currently offline HeitzsoFriend
Messages: 20
Registered: July 2009
Junior Member
Try SWT.APPLICATION_MODAL
While digging in that doc, look at other modal models
as well.

Yuraukar wrote:

> I am trying to achieve something like
> a floating property window. This should
> always be on top of its parent shell,
> but of course not on top of other windows.

> What is the recommended style of doing this
> with SWT?
> I tried to create a shell with given parent,
> but this seems to have no effect.

> Yuraukar
Re: How to have window always on top of another [message #439175 is a reply to message #438939] Tue, 06 July 2004 15:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: yuraukar.hotmail.com

No, this doesn't do the trick.

SWT.APPLICATION_MODAL displays the shell, but
no other window can be activated (that's what
modal means in general). SWT.SYSTEM_MODAL
doesn't let the user select a different window
of any other app. I therefore want a modeless
window/dialog.

SWT.ON_TOP almost does the trick, but the
window is on top of all windows - windows other
than the parent should hide the floating propery
window.

I don't see any effect on SWT.PRIMARY_MODAL (at
least not on Windows).

Any other ideas?

Thanks
Yuraukar.

Heitzso wrote:
> Try SWT.APPLICATION_MODAL
> While digging in that doc, look at other modal models
> as well.
>
> Yuraukar wrote:
>
>
>>I am trying to achieve something like
>>a floating property window. This should
>>always be on top of its parent shell,
>>but of course not on top of other windows.
>
>
>>What is the recommended style of doing this
>>with SWT?
>>I tried to create a shell with given parent,
>>but this seems to have no effect.
>
>
>>Yuraukar
>
>
>
Re: How to have window always on top of another [message #439179 is a reply to message #439175] Tue, 06 July 2004 16:21 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Use new Shell(Shell, int). That will create a dialog shell that stays on
top of the parent shell.

"Yuraukar" <yuraukar@hotmail.com> wrote in message
news:ccefgq$ebd$1@eclipse.org...
> No, this doesn't do the trick.
>
> SWT.APPLICATION_MODAL displays the shell, but
> no other window can be activated (that's what
> modal means in general). SWT.SYSTEM_MODAL
> doesn't let the user select a different window
> of any other app. I therefore want a modeless
> window/dialog.
>
> SWT.ON_TOP almost does the trick, but the
> window is on top of all windows - windows other
> than the parent should hide the floating propery
> window.
>
> I don't see any effect on SWT.PRIMARY_MODAL (at
> least not on Windows).
>
> Any other ideas?
>
> Thanks
> Yuraukar.
>
> Heitzso wrote:
> > Try SWT.APPLICATION_MODAL
> > While digging in that doc, look at other modal models
> > as well.
> >
> > Yuraukar wrote:
> >
> >
> >>I am trying to achieve something like
> >>a floating property window. This should
> >>always be on top of its parent shell,
> >>but of course not on top of other windows.
> >
> >
> >>What is the recommended style of doing this
> >>with SWT?
> >>I tried to create a shell with given parent,
> >>but this seems to have no effect.
> >
> >
> >>Yuraukar
> >
> >
> >
Previous Topic:TableViewer jumping to next column using TAB-Key
Next Topic:Add controls after shell open...
Goto Forum:
  


Current Time: Fri Apr 26 00:04:06 GMT 2024

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

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

Back to the top