Community
Participate
Working Groups
3.1M6 - run the following snippet - each click on the white Composite will show/hide its horizontal scrollbar - this will often show a flash, even though the Composite specifies style NO_BACKGROUND public static void main(String[] args) { final Display display = new Display(); Shell shell = new Shell(display); shell.setBounds(10,10,200,400); final Composite composite = new Composite(shell, SWT.NO_BACKGROUND | SWT.H_SCROLL); composite.setBounds(10,10,100,300); composite.addPaintListener(new PaintListener() { public void paintControl(PaintEvent e) { e.gc.setBackground(display.getSystemColor(SWT.COLOR_WHITE)); e.gc.fillRectangle(composite.getClientArea()); } }); composite.addListener(SWT.MouseDown, new Listener() { public void handleEvent(Event event) { ScrollBar hBar = composite.getHorizontalBar(); hBar.setVisible(!hBar.getVisible()); } }); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
*** Bug 26889 has been marked as a duplicate of this bug. ***
Work is discontinued on SWT's Motif port.
Closing report, platform is discontinued.