Bug 154852 - Toggle buttons with images have no feedback when selected with tab
Summary: Toggle buttons with images have no feedback when selected with tab
Status: RESOLVED DUPLICATE of bug 153099
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: accessibility
Depends on:
Blocks: 144685
  Show dependency tree
 
Reported: 2006-08-23 09:36 EDT by Cherie Revells CLA
Modified: 2006-08-24 11:02 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cherie Revells CLA 2006-08-23 09:36:35 EDT
This is an accessibility issue.  A Button that is a toggle button with an image does not show any feedback when it is selected when using the tab key to navigate through controls.  This works fine for push buttons with an image and for toggle buttons with text.  Here is a snippit to show the problem:

    public static void main(String[] args) {
        Display display = new Display();
        Shell shell = new Shell(display);
        shell.setLayout(new RowLayout());

        Image image = new Image(display, 20, 20);
        Color color = display.getSystemColor(SWT.COLOR_BLUE);
        GC gc = new GC(image);
        gc.setBackground(color);
        gc.fillRectangle(image.getBounds());
        gc.dispose();

        Composite c1 = new Composite(shell, SWT.BORDER);
        c1.setLayout(new RowLayout());
        Button b1 = new Button(c1, SWT.PUSH);
        b1.setImage(image);

        Button b2 = new Button(c1, SWT.TOGGLE);
        b2.setImage(image);

        Button b3 = new Button(c1, SWT.TOGGLE);
        b3.setText("B3");

        shell.pack();
        shell.open();

        while (!shell.isDisposed()) {
            if (!display.readAndDispatch())
                display.sleep();
        }
        display.dispose();
    }
Comment 1 Florian Priester CLA 2006-08-23 11:15:06 EDT
See also bug 153099.
Comment 2 Cherie Revells CLA 2006-08-24 11:02:12 EDT

*** This bug has been marked as a duplicate of 153099 ***