Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 75566 - Read only text appears differently on Linux compared with Windows
Summary: Read only text appears differently on Linux compared with Windows
Status: RESOLVED DUPLICATE of bug 71765
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Grant Gayed CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-04 09:46 EDT by Kim Woods CLA
Modified: 2005-02-12 23:07 EST (History)
2 users (show)

See Also:


Attachments
C snippet that shows native READ_ONLY Text appearance (799 bytes, text/plain)
2004-10-04 10:29 EDT, Grant Gayed CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kim Woods CLA 2004-10-04 09:46:57 EDT
I have a Wizard and on part of the page I have the following.

  Text text = new Text(panel1, SWT.MULTI | SWT.WRAP | SWT.READ_ONLY);
    text.setText("Hello Worlds");

On windows the black text appears on a grey background which is the same as 
the rest of the background of the wizard.
On Linux it appears as black text on a white backgroung which makes the wizard 
page look quite odd.

I though that the code should work in an identical way on both platforms - is 
there a fix or a workround for this????

Thanks
Kim.
Comment 1 Grant Gayed CLA 2004-10-04 10:29:03 EDT
Created attachment 14978 [details]
C snippet that shows native READ_ONLY Text appearance

This is the correct gtk native behaviour, as the attached C snippet shows.  Is
this a case where you're using one of these instead of a label so that screen
readers will read out your text?
Comment 2 Steve Northover CLA 2004-10-04 10:56:48 EDT
GG is investigating it.
Comment 3 Kim Woods CLA 2004-10-05 07:00:55 EDT
Yes I am using the read only text box to ensure the text is read by the screen 
reader so my product is accessible.
Comment 4 Billy Biggs CLA 2005-02-12 23:07:59 EST
We should probably have some way of creating GTK+'s selectable labels, which are
the native widget intended to solve this problem.

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