Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » GC Translate?
GC Translate? [message #456636] Mon, 06 June 2005 08:17 Go to next message
user is currently offline userFriend
Messages: 296
Registered: July 2009
Senior Member
Hi, in AWT, there is a method in graphics that let me translate it.
(move the 0,0 point of the graphics to somewhere else, useful for
componenets with lightweight sub components). how do I do the same with
SWT's GC?
Re: GC Translate? [message #456674 is a reply to message #456636] Mon, 06 June 2005 15:14 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Use a Transform, new in 3.1.

<user@domain.invalid> wrote in message news:d810pf$ren$1@news.eclipse.org...
> Hi, in AWT, there is a method in graphics that let me translate it.
> (move the 0,0 point of the graphics to somewhere else, useful for
> componenets with lightweight sub components). how do I do the same with
> SWT's GC?
Re: GC Translate? [message #456692 is a reply to message #456674] Tue, 07 June 2005 07:02 Go to previous message
Omry Yadan is currently offline Omry YadanFriend
Messages: 45
Registered: July 2009
Member
Thanks.

Steve Northover wrote:
> Use a Transform, new in 3.1.
>
> <user@domain.invalid> wrote in message news:d810pf$ren$1@news.eclipse.org...
>
>>Hi, in AWT, there is a method in graphics that let me translate it.
>>(move the 0,0 point of the graphics to somewhere else, useful for
>>componenets with lightweight sub components). how do I do the same with
>>SWT's GC?
>
>
>
Previous Topic:Socket communication
Next Topic:MouseWheel Events
Goto Forum:
  


Current Time: Thu Apr 25 10:53:31 GMT 2024

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

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

Back to the top