|
|
Re: [Draw2D] turning on advanced graphics [message #495911 is a reply to message #495469] |
Fri, 06 November 2009 10:19  |
Eclipse User |
|
|
|
Which platform are you on? Does the following work (it should output
'false' then 'true')?
public static void main (String [] args) {
Display display = new Display ();
Shell shell = new Shell(display);
GC gc = new GC(shell);
System.out.println(gc.getAdvanced());
gc.setAdvanced(true);
System.out.println(gc.getAdvanced());
gc.dispose();
shell.open ();
while (!shell.isDisposed ()) {
if (!display.readAndDispatch ()) display.sleep ();
}
display.dispose ();
}
Grant
"Andy Czerwonka" <aczerwonka@3esi.com> wrote in message
news:hct78a$62h$1@build.eclipse.org...
> Maybe I'm drawing on on the wrong receiver? I'm on a Canvas.
>
> [snip]
> >I can't get gc.getAdvanced() to return true. Is there a way I can force
> >it? It's clearly not a hardware problem.
> [snip]
>
>
|
|
|
Powered by
FUDForum. Page generated in 1.20209 seconds