Is it possible to change progress bar color using the paint listner?
I don't want just an inital foreground and a background color, but want it to work just like how a normal green color progress bar works on Windows but with my own foreground and background.
I tried the below code but it won't work
GC gc = event.gc;
Device device=Display.getDefault();
Color foreground = gc.getForeground();
Color background = gc.getBackground();
gc.setForeground(device.getSystemColor(SWT.COLOR_RED));
gc.setBackground(device.getSystemColor(SWT.COLOR_YELLOW));
Am stuck with this requirement and have been told that it's possible using the paint listener, wondering how !
Any help would be appreciated.