how to enable copy from a disabled TextBox in IE with GWT? - 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.

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.

Related

Excel 2010 cannot paste into a form textbox

I have a textbox within a frame on my form. A user wants to copy and paste data into this textbox, but they are unable to do so. They can copy but when they try a right click or CTRL + V nothing happens.
I've looked at the textbox properties and don't see anything that is preventing this. The data they are copying is Arial 10. The textbox is formatted as Arial Regular 10.
Is there something on the form or frame that is preventing the paste feature from not working?
Thanks for the help....
To be able to paste into a textbox in a frame, you have to first be in Edit mode:
Right click on the textbox
Hover over Textbox Object
In the submenu, select Edit
Now you can change the text inside the box, including pasting text from other sources.
UPDATE:
When the textbox has focus, you can copy a cell's value into it, but not the reference to the cell itself. Click on the cell whose value you want to copy, then copy the text from the formula bar at the top of the screen and paste that into your textbox.

Tinymce not fully disabled in chrome

I want to make a tinymce box disabled which I sort of manage but in chrome the content still is editable to a limited extent. I will explain below:
I first initialize the editor, then I disabled the editor if another parameter is true. I disable the editor with this command:
tinyMCE.get('taClientInformationNotebook').getBody().setAttribute('contenteditable', false);
This disabled the editor however in chrome, if I mark some text in the editor, and press any key on the keyboard the text gets replaced with the pressed character. However it is only possible to press a key once, any further input will be ignored.
So you could say that in chrome the tinymce box is disabled fully but allows for one character to be input. Very strange..
No problems in IE.
How to disable fully in chrome? I've also tried disabling the editor with other commands like "myeditor.setMode('readonly')" and "editor.settings.readOnly=true" but with the same results.

LibreOffice tooltip for disabled control

In LibreOffice Calc I have a form with checkbox controls. I use the Help Text property to display tooltips for them, but this only works when the control is enabled. How can I make a tooltip display also for a disabled control?
Libreoffice version 5.3.4.2
It could be that this is not possible to do, at least not the way I originally intended.
My solution: Remove the label text from the checkbox control, instead add it in a separate label control. Then put the tooltip (help text) on the label instead. It will not be as obvious as before when the checkbox is disabled as the label text is not greyed out, but the tooltip will always display.

MS Access Form - Enter key not moving to new line

I have an odd issue with a form I have in MS Access. For some reason, when I hit the "enter" key within a text box, the cursor moves to a different text box. What i am looking to happen is for the cursor to simply move to another line within the same text box.
Anyone have any ideas how to correct this?
You can use Ctrl+Enter to enter a new line into any text box.
For a specific text box, you can make the Enter insert a new line instead of moving to another control on the form by changing the text box's Enter Key Behavior property.
That's what I think you're actually looking for, but you would need to set that property for every text box where you want it to happen ... which may be fine for your needs. I mentioned Ctrl+Enter first only because that method works for any text box without changing the default property setting.
Under file, options, client settings, very first one option move after enter and change from next field to next record.

JQueryUI Dialog TinyMCE Issues

i am having some problems with the TinyMCE (V3.4.7) and JqueryUI (V1.8.14) Dialog
the following Fiddler link shows my example purfectly here
What i am trying to do is open a JqueryUI Dialog box with a TinyMCE WYSIWYG Editor in it.
the first time it displays properly. but if you click close and then reopen the box it will not show the Editor but just the TextArea.
Any help would be good. Thanks
Update
I did find out a solution that works for me, i have put up the working code here
What i am doing is check to see if the dialog has been opened before and if so just open it, then in the Open Function i test to see if the box contains an element with id_parent
if it does then this will be the editor (so do nothing) otherwise just init as usual.
it seems there is a problem with the JQuery Plug in as it does not remove the elements when you call tinyMCE.execCommand('mceRemoveControl',false,'editor_id') and when you re-add the editor it attaches to the first box available.
Problem here is that you need to shut down tinymce correctly in order to open an editor with the same id.
Use:
ed.execCommand('mceRemoveControl', false, 'editor_id');// editor_id equals the id of your textarea