Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » how to read out color setting for selections
how to read out color setting for selections [message #444706] Thu, 21 October 2004 08:21 Go to next message
Yves Harms is currently offline Yves HarmsFriend
Messages: 80
Registered: July 2009
Member
Hi,

how can i find out (programmatically) which color will be used to
highlight selection ins a table ?
This setting is OS dependent.
WinXP: blue
MacOS9: grey

Since SWT doesnt supoort multiselection of cells in a table i want to
build my own selection visualisation.

Yves
Re: how to read out color setting for selections [message #444855 is a reply to message #444706] Thu, 21 October 2004 13:17 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
Color backgroundSelection =
display.getSystemColor(SWT.COLOR_LIST_SELECTION);
Color foregroundSelection =
display.getSystemColor(SWT.COLOR_LIST_SELECTION_TEXT);

See also TableCursor:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet96.java?rev=HEAD&a mp;content-type=text/vnd.viewcvs-markup

"Yves Harms" <user@domain.invalid> wrote in message
news:cl7r0r$f8u$1@eclipse.org...
> Hi,
>
> how can i find out (programmatically) which color will be used to
> highlight selection ins a table ?
> This setting is OS dependent.
> WinXP: blue
> MacOS9: grey
>
> Since SWT doesnt supoort multiselection of cells in a table i want to
> build my own selection visualisation.
>
> Yves
Previous Topic:Outlook RTF
Next Topic:Finalize my application
Goto Forum:
  


Current Time: Fri Apr 19 14:26:45 GMT 2024

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

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

Back to the top