Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Strange behavior of gc.setForeground() and a table in Cocoa SWT
|
Re: Strange behavior of gc.setForeground() and a table in Cocoa SWT [message #521423 is a reply to message #521316] |
Wed, 17 March 2010 14:24 |
Grant Gayed Messages: 2150 Registered: July 2009 |
Senior Member |
|
|
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?
|
|
| | | |
Goto Forum:
Current Time: Sat Dec 07 21:12:25 GMT 2024
Powered by FUDForum. Page generated in 0.03595 seconds
|