Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Strange Layout Problem


Can you make it happen repeatedly using a simple SWT snippet?
Say, start with this snippet, and modify it to look like your layout, and then send that so we have something to work with?
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet172.java

Carolyn



kash.riaz@xxxxxxxxx
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx

11/22/2006 12:00 PM

Please respond to
"Eclipse Platform SWT component developers list."        <platform-swt-dev@xxxxxxxxxxx>

To
"Eclipse Platform SWT component developers list." <platform-swt-dev@xxxxxxxxxxx>
cc
Subject
[platform-swt-dev] Strange Layout Problem





I have a simple SWT application using GridLayout. Sometimes the layout
completely changes and the widgets are moved half way down the Shell,
or to the right. I am not programmtically changing the layout at
run-time - everything is 'fixed' and lays out all the widgets
correctly onto the grid 95% of the time, but after some period of use,
the widgets begin to move around the shell. A text field is shrunk to
its value's length, buttons are moved down or large gaps appear
between widgets.

I have seen the problem on an NT4 machine as well as XP.

The only way to reproduce the problem is to hibernate the machine
(leaving the app running). Once Windows is re-started, its layout
changes. It also happens when the app is left running and the user
does something in another app window.

I am not sure if this is a bug. Can anyone think of a reason as to why
this might happen? Could the rendering suddenly be changing, affected
by some external source (e.g. a DLL file)?

Any help appreciated.
Kashif.
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev


Back to the top