|
Re: Strange behavior of gc.setForeground() and a table in Cocoa SWT [message #521423 is a reply to message #521316] |
Wed, 17 March 2010 10:24   |
Eclipse User |
|
|
|
Hi,
I see what you're describing, but don't know why gc.setForeground() would
affect the position of drawn text, are you sure that removing this call
makes the problem not appear? Are you able to provide a snippet that shows
the problem happening, or at least, your custom
FocusCellOwnerDrawHighlighter implementation?
Grant
"Artem Redkin" <artem@redkin.su> wrote in message
news:hnq62e$rvm$1@build.eclipse.org...
> I have a table with FocusCellOwnerDrawHighlighter (custom version of it,
to be precise), but on selection all text in cells, which have SWT.Right
align, shifts to the right border:
> http://picasaweb.google.ru/lh/photo/RL4JgyKfUQpax-6bOnYQSQ?f eat=directlink
> http://picasaweb.google.ru/lh/photo/jJCjXk4bSD71WqHk0MrCNA?f eat=directlink
>
> It seem that gc.setForeground(Color foreground) is causing this problem.
Any hints or workarounds for this?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08124 seconds