Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Shell setVisible causing problems on Linux
Shell setVisible causing problems on Linux [message #464400] Wed, 23 November 2005 17:21 Go to next message
John Huss is currently offline John Huss
Messages: 3
Registered: July 2009
Junior Member
I'm using setVisible to show and hide some dialogs in my application and
I've encountered some problems on Linux.

After a shell has been hidden once with setVisible(false) the next time it
is displayed with setVisible(true) some of the controls behave strangely.
In particular I've noticed that:
1) Text controls -- the cursor is no longer visible
2) List controls -- multi-select no longer works

Any idea why this is happening?


To be specific, I'm actually using jface.dialogs.Dialog descendants here.

The reason I'm using setVisible in the first place is to improve performance
(which is particularly slow on Linux). Creating the dialog once and hiding
and showing it when needed is common practice in Windows development, but
doesn't appear to work well in this situation.

John Huss
Re: Shell setVisible causing problems on Linux [message #464515 is a reply to message #464400] Wed, 23 November 2005 11:21 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika Irvine
Messages: 1272
Registered: July 2009
Senior Member
Please enter a bug report against Platform SWT.

https://bugs.eclipse.org/bugzilla.html

"John Huss" <johnthuss@yahoo.com> wrote in message
news:dm05nf$92j$1@news.eclipse.org...
> I'm using setVisible to show and hide some dialogs in my application and
> I've encountered some problems on Linux.
>
> After a shell has been hidden once with setVisible(false) the next time it
> is displayed with setVisible(true) some of the controls behave strangely.
> In particular I've noticed that:
> 1) Text controls -- the cursor is no longer visible
> 2) List controls -- multi-select no longer works
>
> Any idea why this is happening?
>
>
> To be specific, I'm actually using jface.dialogs.Dialog descendants here.
>
> The reason I'm using setVisible in the first place is to improve
> performance (which is particularly slow on Linux). Creating the dialog
> once and hiding and showing it when needed is common practice in Windows
> development, but doesn't appear to work well in this situation.
>
> John Huss
>
Re: Shell setVisible causing problems on Linux [message #464550 is a reply to message #464400] Thu, 24 November 2005 10:42 Go to previous message
Billy Biggs is currently offline Billy Biggs
Messages: 94
Registered: July 2009
Member
John Huss wrote:
> I'm using setVisible to show and hide some dialogs in my application and
> I've encountered some problems on Linux.
>
> After a shell has been hidden once with setVisible(false) the next time it
> is displayed with setVisible(true) some of the controls behave strangely.
> In particular I've noticed that:
> 1) Text controls -- the cursor is no longer visible
> 2) List controls -- multi-select no longer works
>
> Any idea why this is happening?

I can't think of any bugs that describe this sort of behaviour. Can
you please file a bug at bugs.eclipse.org against Platform > SWT and
include some more detail on what your code is doing such that a test
case could be created? It sounds very strange.

> The reason I'm using setVisible in the first place is to improve performance
> (which is particularly slow on Linux). Creating the dialog once and hiding
> and showing it when needed is common practice in Windows development, but
> doesn't appear to work well in this situation.

It would be interesting to get some kind of benchmark of what the
difference is that you're seeing here. What GTK+ theme you are using
and how well it is optimized can have a large effect on widget creation
time. If it's a really striking difference in creation time it may be a
bug in the theme.

-Billy
Previous Topic:Problen developping wizards tree structure
Next Topic:[No more handles] Exception on Win98 after changing to SWT 3.1
Goto Forum:
  


Current Time: Fri Aug 29 10:15:52 EDT 2014

Powered by FUDForum. Page generated in 0.02436 seconds