user26270
user26270

Reputation: 7084

how to enable copy from a disabled TextBox in IE with GWT?

I'd like to have a disabled TextBox that the users cannot edit, but still copy from. I've tried both setReadOnly(true) and setEnabled(false), separately. Firefox seems to work as desired; the textbox is disabled but users can still copy the value to the clipboard. IE the disabled textbox has a greyed-out background and you can't copy to the clipboard.

Upvotes: 0

Views: 640

Answers (1)

Jama A.
Jama A.

Reputation: 16089

Try using HtmlPanel, HTML widget or something else for just wrapping the text since you are marking it as read only, and just give a style to it in order to it looks like a TextBox.

Upvotes: 2

Related Questions