|
Re: Group backgroun color in 3.1RC1 [message #456713 is a reply to message #456650] |
Tue, 07 June 2005 13:29 |
Grant Gayed Messages: 2150 Registered: July 2009 |
Senior Member |
|
|
Hi Marc,
I've verified that this works for me with the simple snippet below (I'm
using gtk 2.4.13). Please try the snippet on your end, and if it doesn't
work for you then log a bug report with Platform - SWT and specify your gtk
version.
If the snippet does work for you then the problem you're seeing must be
specific to your use context. It would be ideal if you could reduce your
case to a similar stand-alone example that shows the problem happening. If
you can then it should be easy to determine what the problem is.
public static void main(String[] args) {
final Display display = new Display();
final Shell shell = new Shell(display);
shell.setBounds(10, 10, 200, 200);
Group group = new Group(shell, SWT.NONE);
group.setBounds(10,10,100,100);
group.setBackground(display.getSystemColor(SWT.COLOR_WHITE)) ;
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) display.sleep();
}
display.dispose();
}
Grant
"Marc Schaubach" <omschaub@gmail.remove.com> wrote in message
news:d81mss$q4g$1@news.eclipse.org...
> I have a simple line on my linux app
>
> group.setBackground(display.getSystemColor(SWT.COLOR_WHITE)) ;
>
> This works great on SWT 3.0 and the background of the group is white.. I
> just upgraded to 3.1RC1 and now this setting has NO effect at all. All
> of the widgets on this background obey the setBackground and are white,
> but not the group itself -- it stays default gray.
>
> Is this a known bug? Is this linux(GTK) specific? Am I missing
> something (very likely)?
>
> Thank in advance
> Marc
|
|
|
Re: Group backgroun color in 3.1RC1 [message #456724 is a reply to message #456713] |
Tue, 07 June 2005 17:53 |
Marc Schaubach Messages: 5 Registered: July 2009 |
Junior Member |
|
|
Your snippet did not work.. I have a gray box on top of a gray shell.
:(
I do not know enough about posting a bug nor am I confident enough to be
sure that it is still not something that I am doing wrong on my end to
actually open up a bug report. Since no one else is having these issues,
I can be relatively sure it is something to do with my setup (which is
rather 'cumbersome')
Specs for my machine:
Running Eclipse 3.1RC1 (x86) INSIDE a 32 bit chroot on my Gentoo AMD64
machine. Unfortunately, on Gentoo, the 64bit version of Eclipse will not
compile correctly, and the provided binaries will crash constantly --
reported heavily in the Gentoo forums by MANY users :*(
So, like I said, this is an unusual setup, and I will let this go and when
I have time, I will try my build on another machine (windows, normal 32bit
linux, etc.) and see if my computer is just being a bear.
Thanks for taking the time to respond... out of the 3 posts I have given
to this news site, you are the first person to ever respond!
Marc
|
|
|
Powered by
FUDForum. Page generated in 0.03131 seconds