I'm having a trouble with a PGroup background color when using
RectangleGroupStrategy with SWT.SMOOTH style bit set on a group
(a bit odd style bit to imply rounded corners imo), if setting
background color to the PGroup to anything different from parent
background, the new background bleeds through the border, effectively
defeating the whole idea of having the border arount the group content...

I think I know what you mean but I'm not exactly sure. Can you attach a
picture?

-Chris

SWT.SMOOTH may not be the best name but I have to make do with what I
got (i.e. the exising SWT constants).

Roland Tepp wrote:
> Hello,
>
> I'm having a trouble with a PGroup background color when using
> RectangleGroupStrategy with SWT.SMOOTH style bit set on a group
> (a bit odd style bit to imply rounded corners imo), if setting
> background color to the PGroup to anything different from parent
> background, the new background bleeds through the border, effectively
> defeating the whole idea of having the border arount the group content...
>

Attached to this message are the modified PGroup snippet code along with
the screenshot this code produces, illustrating my problem.

As You can see from the screenshot, the background of PGroup is bleeding
through the border here at the corners of the PGroup, where they should
be white, they are red instead.

It gets actually worse if I have an image set with the SWT.TOP style bit
in image positioning flag, where the entire top area of the PGroup gets
painted red...

Chris Gross kirjutas mulle midagi seesugust:
> Hi Roland,
>
> I think I know what you mean but I'm not exactly sure. Can you attach a
> picture?
>
> -Chris
>
> SWT.SMOOTH may not be the best name but I have to make do with what I
> got (i.e. the exising SWT constants).
>
> Roland Tepp wrote:
>> Hello,
>>
>> I'm having a trouble with a PGroup background color when using
>> RectangleGroupStrategy with SWT.SMOOTH style bit set on a group
>> (a bit odd style bit to imply rounded corners imo), if setting
>> background color to the PGroup to anything different from parent
>> background, the new background bleeds through the border, effectively
>> defeating the whole idea of having the border arount the group content...
>>

/*********************************************************** ********************
* Copyright (c) 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
************************************************************ *******************/
package org.eclipse.swt.nebula.snippets.pgroup;

I think I know what you mean but I'm not exactly sure. Can you attach a
picture?

-Chris

SWT.SMOOTH may not be the best name but I have to make do with what I
got (i.e. the exising SWT constants).

Roland Tepp wrote:
> Hello,
>
> I'm having a trouble with a PGroup background color when using
> RectangleGroupStrategy with SWT.SMOOTH style bit set on a group
> (a bit odd style bit to imply rounded corners imo), if setting
> background color to the PGroup to anything different from parent
> background, the new background bleeds through the border, effectively
> defeating the whole idea of having the border arount the group content...
>

Attached to this message are the modified PGroup snippet code along with
the screenshot this code produces, illustrating my problem.

As You can see from the screenshot, the background of PGroup is bleeding
through the border here at the corners of the PGroup, where they should
be white, they are red instead.

It gets actually worse if I have an image set with the SWT.TOP style bit
in image positioning flag, where the entire top area of the PGroup gets
painted red...

Chris Gross kirjutas mulle midagi seesugust:
> Hi Roland,
>
> I think I know what you mean but I'm not exactly sure. Can you attach a
> picture?
>
> -Chris
>
> SWT.SMOOTH may not be the best name but I have to make do with what I
> got (i.e. the exising SWT constants).
>
> Roland Tepp wrote:
>> Hello,
>>
>> I'm having a trouble with a PGroup background color when using
>> RectangleGroupStrategy with SWT.SMOOTH style bit set on a group
>> (a bit odd style bit to imply rounded corners imo), if setting
>> background color to the PGroup to anything different from parent
>> background, the new background bleeds through the border, effectively
>> defeating the whole idea of having the border arount the group content...
>>

/*********************************************************** ********************
* Copyright (c) 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
************************************************************ *******************/
package org.eclipse.swt.nebula.snippets.pgroup;