Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Problem with ON_TOP and SHELL_TRIM
Problem with ON_TOP and SHELL_TRIM [message #447248] Fri, 10 December 2004 00:07 Go to next message
Eclipse UserFriend
Originally posted by: jason.workman.nextpage.com

Whenever I use the ON_TOP style, my title bar is narrow and I lose the MIN
and MAX versions. I just updated to 3.0.1 and did not have this problem
before.

Does anyone know of a fix or workaround?

Thanks.



public class TestMe
{
public static void main(String[] args)
{
Shell shell = new Shell(SWT.SHELL_TRIM | SWT.ON_TOP);
shell.open();
while (shell != null && !shell.isDisposed() && shell.isVisible())
{
if (!shell.getDisplay().readAndDispatch())
{
shell.getDisplay().sleep();
}
}
}
}
Re: Problem with ON_TOP and SHELL_TRIM [message #447265 is a reply to message #447248] Sat, 11 December 2004 00:20 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Sounds like a bug. Can you confirm that it is still happening in a nightly
SWT build? If so, enter a bug report.

"Jason Workman" <jason.workman@nextpage.com> wrote in message
news:cpapb9$jg7$1@www.eclipse.org...
> Whenever I use the ON_TOP style, my title bar is narrow and I lose the MIN
> and MAX versions. I just updated to 3.0.1 and did not have this problem
> before.
>
> Does anyone know of a fix or workaround?
>
> Thanks.
>
>
>
> public class TestMe
> {
> public static void main(String[] args)
> {
> Shell shell = new Shell(SWT.SHELL_TRIM | SWT.ON_TOP);
> shell.open();
> while (shell != null && !shell.isDisposed() && shell.isVisible())
> {
> if (!shell.getDisplay().readAndDispatch())
> {
> shell.getDisplay().sleep();
> }
> }
> }
> }
>
>
Re: Problem with ON_TOP and SHELL_TRIM [message #447371 is a reply to message #447265] Mon, 13 December 2004 22:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jason.workman.nextpage.com

It appears to be fixedin the latest stable build for 3.1. It is not fixed
in the 3.0.2 build.

I assume that I don't need to file a bug, correct? Is there a workaround
for 3.0.1 users?

Thanks

Steve Northover wrote:

> Sounds like a bug. Can you confirm that it is still happening in a nightly
> SWT build? If so, enter a bug report.

> "Jason Workman" <jason.workman@nextpage.com> wrote in message
> news:cpapb9$jg7$1@www.eclipse.org...
>> Whenever I use the ON_TOP style, my title bar is narrow and I lose the MIN
>> and MAX versions. I just updated to 3.0.1 and did not have this problem
>> before.
>>
>> Does anyone know of a fix or workaround?
>>
>> Thanks.
>>
>>
>>
>> public class TestMe
>> {
>> public static void main(String[] args)
>> {
>> Shell shell = new Shell(SWT.SHELL_TRIM | SWT.ON_TOP);
>> shell.open();
>> while (shell != null && !shell.isDisposed() && shell.isVisible())
>> {
>> if (!shell.getDisplay().readAndDispatch())
>> {
>> shell.getDisplay().sleep();
>> }
>> }
>> }
>> }
>>
>>
Re: Problem with ON_TOP and SHELL_TRIM [message #447374 is a reply to message #447265] Mon, 13 December 2004 23:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jason.workman.nextpage.com

It appears to be fixed in the latest build of 3.1. It is not working in
the 3.0.2 build. Should I still file a bug or no?

Is there a workaround for 3.0.1?

thanks

Steve Northover wrote:

> Sounds like a bug. Can you confirm that it is still happening in a nightly
> SWT build? If so, enter a bug report.

> "Jason Workman" <jason.workman@nextpage.com> wrote in message
> news:cpapb9$jg7$1@www.eclipse.org...
>> Whenever I use the ON_TOP style, my title bar is narrow and I lose the MIN
>> and MAX versions. I just updated to 3.0.1 and did not have this problem
>> before.
>>
>> Does anyone know of a fix or workaround?
>>
>> Thanks.
>>
>>
>>
>> public class TestMe
>> {
>> public static void main(String[] args)
>> {
>> Shell shell = new Shell(SWT.SHELL_TRIM | SWT.ON_TOP);
>> shell.open();
>> while (shell != null && !shell.isDisposed() && shell.isVisible())
>> {
>> if (!shell.getDisplay().readAndDispatch())
>> {
>> shell.getDisplay().sleep();
>> }
>> }
>> }
>> }
>>
>>
Re: Problem with ON_TOP and SHELL_TRIM [message #447628 is a reply to message #447374] Wed, 15 December 2004 15:28 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Don't use SHELL_TRIM and ON_TOP. This isn't honoured on every platform
anyways. On X windows systems, ON_TOP shells can't have trim. This is
enforced by the window manager.

"Jason Workman" <jason.workman@nextpage.com> wrote in message
news:cpl8bg$e2f$1@www.eclipse.org...
> It appears to be fixed in the latest build of 3.1. It is not working in
> the 3.0.2 build. Should I still file a bug or no?
>
> Is there a workaround for 3.0.1?
>
> thanks
>
> Steve Northover wrote:
>
> > Sounds like a bug. Can you confirm that it is still happening in a
nightly
> > SWT build? If so, enter a bug report.
>
> > "Jason Workman" <jason.workman@nextpage.com> wrote in message
> > news:cpapb9$jg7$1@www.eclipse.org...
> >> Whenever I use the ON_TOP style, my title bar is narrow and I lose the
MIN
> >> and MAX versions. I just updated to 3.0.1 and did not have this problem
> >> before.
> >>
> >> Does anyone know of a fix or workaround?
> >>
> >> Thanks.
> >>
> >>
> >>
> >> public class TestMe
> >> {
> >> public static void main(String[] args)
> >> {
> >> Shell shell = new Shell(SWT.SHELL_TRIM | SWT.ON_TOP);
> >> shell.open();
> >> while (shell != null && !shell.isDisposed() && shell.isVisible())
> >> {
> >> if (!shell.getDisplay().readAndDispatch())
> >> {
> >> shell.getDisplay().sleep();
> >> }
> >> }
> >> }
> >> }
> >>
> >>
>
>
Previous Topic:Drag and drop of Composite instances
Next Topic:Question about SWT_AWT deadlock issues
Goto Forum:
  


Current Time: Wed Oct 28 03:37:33 GMT 2020

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

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

Back to the top