I have a NO_TRIM shell with rounded corners, created by applying a Region. The problem is, I'd like the edges of the shell to be anti-aliased, which I don't know how to do with applying a Region or any other way.
Right now I have this:
shell.addPaintListener(new PaintListener() {
public void paintControl(PaintEvent e) {
setRoundedShape(shell, 10);
}
});
//...
void setRoundedShape(Control control, int r) {
Region region = new Region(control.getDisplay());
// ...
control.setRegion(region);
region.dispose();
}
I know about GC.setAntialias(SWT.ON)
but I don't see how to use it to shape a control. Please help...