[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Color of SWT.Border

While at it - how could I get hold of the native (themed) text border color?

I know the system color values, but the SWT.COLOR_WIDGET_BORDER is not what I want. On WinXP for example, the text border is dark blueish - much darker than any of the COLOR_LIST_SELECTION or COLOR_TITLE_* colors...

Tom Schindl kirjutas mulle midagi seesugust:
Remove the border (SWT.NONE) and add a paint listener to draw the border your own.

Tom

Lars Vogel schrieb:
Hi,

can I change the color of the border of  a text field during runtime?
firstName = new Text(parent, SWT.BORDER);

Best regards, Lars





-- Roland Tepp