[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Re: StyledText doesn't recognise SWT.FLAT

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=18607

It's been a problem for a while.  I can't find a way to make XP draw the
border properly.

"Doug Satchwell" <doug.satchwell@xxxxxxxxxxxxxx> wrote in message
news:d82ab4$l0s$1@xxxxxxxxxxxxxxxxxxx
> A screenshot is attached. The Product Code field is a StyledText created
> using new TextViewer(parent,SWT.SINGLE | SWT.BORDER | SWT.FLAT) - note
that
> the background is normally white but I set it to blue until some text is
> typed in - and the Quantity field below it is a Text created using
> FormToolkit.createText(parent,"",SWT.SINGLE).
>
> As you can see, the two fields look different. Ideally I would have them
> look both the same. Actually, the only reason I'm using a StyledText
instead
> of Text is because I couldn't find any other way of doing autocompletion
> other than using a ContentAssist on a StyledText. You might know of
another
> way?
>
> Thanks,
>
> Doug.
>
>
> "Steve Northover" <steve_northover@xxxxxxxxxx> wrote in message
> news:d81p6m$ti8$1@xxxxxxxxxxxxxxxxxxx
> > Can you post a screen shot of a StyledText looking bad and a regular
Text
> > widget looking good?
> >
> > "Doug Satchwell" <doug.satchwell@xxxxxxxxxxxxxx> wrote in message
> > news:d7u27o$6u2$1@xxxxxxxxxxxxxxxxxxx
> >> Hi - I'm using Eclipse Forms on Eclipse 3.1M5 and I would like to have
a
> >> StyledText widget on my page. I create the StyledText via:
> >>
> >>  new TextViewer(parent,SWT.SINGLE | SWT.BORDER | SWT.FLAT)
> >>
> >> However, StyledText doesn't seem to recognise SWT.FLAT and so the
widget
> >> looks quite different to the other plain Text widgets on the page.
> >>
> >> Are there any plans to support the flat look?
> >>
> >> Thanks,
> >>
> >> Doug.
> >>
> >>
> >
> >
>
>
>