Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » how to draw a dash line with gc?
how to draw a dash line with gc? [message #462414] Wed, 12 October 2005 03:17 Go to next message
augur is currently offline augurFriend
Messages: 25
Registered: July 2009
Junior Member
gc.setLineWidth(3);
gc.setLineStyle(SWT.LINE_DASHDOTDOT);
gc.drawLine(0,0,100,100);

It doesn't work,I got a solide line yet.
:(
thanks in advance!
Re: how to draw a dash line with gc? [message #462417 is a reply to message #462414] Wed, 12 October 2005 03:35 Go to previous message
augur is currently offline augurFriend
Messages: 25
Registered: July 2009
Junior Member
very sorry,it's my fault.
I draw the line on the background with the same color of it.
"augur" <guanfeng@voipack.com> д
Previous Topic:Need help on running SWT/OpenGL demos
Next Topic:Printing on Solaris?
Goto Forum:
  


Current Time: Thu Apr 25 23:29:17 GMT 2024

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

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

Back to the top