Community
Participate
Working Groups
Please run the code below. When you click on the item, its text turns white! :O ----------------- Display display = new Display(); Shell shell = new Shell (display); shell.setBackground(display.getSystemColor(SWT.COLOR_WHITE)); ToolBar bar = new ToolBar (shell, SWT.BORDER); for (int i=0; i<2; i++) { ToolItem item = new ToolItem (bar, SWT.PUSH); item.setText ("Item " + i); } bar.pack(); shell.pack(); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch ()) display.sleep (); } display.dispose ();
I tested on xp, vista, and 7. It only fails on XP.
Okay, please test again. a) set the background of the shell in your example to red, the item is still white when pressed b) run control example, the toolitems are white when pressed c) to windows explorer and press a toolitem (with text), the text goes white. bottom: toolitems have white text color when pressed. agreed ?
closing as wont fix. platform behaviour.