Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » [Draw2D] turning on advanced graphics
[Draw2D] turning on advanced graphics [message #495460] Thu, 05 November 2009 00:01 Go to next message
Andy Czerwonka is currently offline Andy CzerwonkaFriend
Messages: 42
Registered: July 2009
Member
I can't get gc.getAdvanced() to return true. Is there a way I can force it?
It's clearly not a hardware problem.

--
andy
Re: [Draw2D] turning on advanced graphics [message #495469 is a reply to message #495460] Thu, 05 November 2009 00:46 Go to previous messageGo to next message
Andy Czerwonka is currently offline Andy CzerwonkaFriend
Messages: 42
Registered: July 2009
Member
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]
Re: [Draw2D] turning on advanced graphics [message #495911 is a reply to message #495469] Fri, 06 November 2009 15:19 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
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]
>
>
Previous Topic:FIRE/PROPAGATE EVENTS TO SPECIFIC CONTROLS
Next Topic:Unsupported or unrecognized format - While converting blob to image
Goto Forum:
  


Current Time: Thu Apr 18 14:30:37 GMT 2024

Powered by FUDForum. Page generated in 0.01810 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top