|
Re: SWTGraphics & Rigth To Left applications [message #142605 is a reply to message #142585] |
Tue, 13 July 2004 18:22 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
I suppose the desired way to do this would be to set the Canvas in RTOL
mode, and have the graphics simply pickup this orientation. Can this be
done on a Canvas? Open a feature request in bugzilla.
"Stephane" <stephane.fournier@netcourrier.com> wrote in message
news:cd10um$4gv$1@eclipse.org...
> Hi,
>
> By default, the GC is drawing all controls in LTR mode. I would like to
> change that in LogicEditor exampleto display text in RTL (Rigth To Left)
> inside the figures.
> I have found it could be done by using SWTGraphics(GC gc) with a GC with
> the rigth style (SWT.RIGTH_TO_LEFT).
>
> I don't known where I am supposed to modify the code to do that.
>
> Does anyone have an idea ?
>
> Stephane.
>
|
|
|
|
Re: SWTGraphics & Rigth To Left applications [message #142963 is a reply to message #142953] |
Fri, 16 July 2004 08:02 |
Eclipse User |
|
|
|
Originally posted by: g.wagenknecht.planet-wagenknecht.de
Stephane wrote:
> Yes, you are rigth but how can I configure the Canvas from Gef or
> Draw2D API ?
I suggest looking at IWorkbenchPart#createPartControl in you editor class.
Then you'll see that you have to extend your EditPartViewer
(EditPartViewer#createControl).
Cu, Gunnar
|
|
|
Re: SWTGraphics & Rigth To Left applications [message #143030 is a reply to message #142953] |
Fri, 16 July 2004 16:44 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
RTOL is new in SWT 3.0 and we didn't have time to investigate what we would
need to do to expose it in GEF.
You'll have to open a feature request.
"Stephane" <stephane.fournier@netcourrier.com> wrote in message
news:cd7u65$4jf$1@eclipse.org...
> Yes, you are rigth but how can I configure the Canvas from Gef or Draw2D
> API ?
> I'd appreciate if you could give me an example based on the
LogicalExample.
>
> Stephane.
>
>
> Randy Hudson wrote:
>
> > I suppose the desired way to do this would be to set the Canvas in RTOL
> > mode, and have the graphics simply pickup this orientation. Can this be
> > done on a Canvas? Open a feature request in bugzilla.
>
> > "Stephane" <stephane.fournier@netcourrier.com> wrote in message
> > news:cd10um$4gv$1@eclipse.org...
> > > Hi,
> > >
> > > By default, the GC is drawing all controls in LTR mode. I would like
to
> > > change that in LogicEditor exampleto display text in RTL (Rigth To
Left)
> > > inside the figures.
> > > I have found it could be done by using SWTGraphics(GC gc) with a GC
with
> > > the rigth style (SWT.RIGTH_TO_LEFT).
> > >
> > > I don't known where I am supposed to modify the code to do that.
> > >
> > > Does anyone have an idea ?
> > >
> > > Stephane.
> > >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02183 seconds