L leongcc Member Licensed User Longtime User Jun 19, 2016 #1 When we long-press on an edittext, the system options appears for us to select cut/copy/paste etc. Is it possible to have this system options appear when we long-press on a label ? I would like to copy some text from a label to an edittext for editing. I can do it on application level but would like the system to take care of cut/copy/paste for both labels and edittexts.
When we long-press on an edittext, the system options appears for us to select cut/copy/paste etc. Is it possible to have this system options appear when we long-press on a label ? I would like to copy some text from a label to an edittext for editing. I can do it on application level but would like the system to take care of cut/copy/paste for both labels and edittexts.
DonManfred Expert Licensed User Longtime User Jun 20, 2016 #2 leongcc said: Is it possible to have this system options appear when we long-press on a label ? Click to expand... No. Labels are not editable Upvote 0
leongcc said: Is it possible to have this system options appear when we long-press on a label ? Click to expand... No. Labels are not editable
L leongcc Member Licensed User Longtime User Jun 20, 2016 #3 DonManfred said: No. Labels are not editable Click to expand... No, not editing label, just want to copy and paste a portion of the label.text to an edittext. Just like copying some text from webpage (not editable) or SMS (not editable) and pasting onto my word-processor. Upvote 0
DonManfred said: No. Labels are not editable Click to expand... No, not editing label, just want to copy and paste a portion of the label.text to an edittext. Just like copying some text from webpage (not editable) or SMS (not editable) and pasting onto my word-processor.
DonManfred Expert Licensed User Longtime User Jun 20, 2016 #4 leongcc said: No, not editing label, just want to copy and paste a portion of the label.text to an edittext. Click to expand... The LAbel is NOT EDITABLE! So you cant copy the text or a part of it! The Systems Copy and Paste methods only works on Editable Objects... At least as i am aware of. Upvote 0
leongcc said: No, not editing label, just want to copy and paste a portion of the label.text to an edittext. Click to expand... The LAbel is NOT EDITABLE! So you cant copy the text or a part of it! The Systems Copy and Paste methods only works on Editable Objects... At least as i am aware of.
Mark Read Well-Known Member Licensed User Longtime User Jun 20, 2016 #5 But a label does have a click event which you could use to capture all the text, place it in the edittext and then edit it. Upvote 0
But a label does have a click event which you could use to capture all the text, place it in the edittext and then edit it.
L leongcc Member Licensed User Longtime User Jun 20, 2016 #6 If you have time please try this: Open Chrome and view any webpage with text. Long-press on the text and the System's Text Selection menu appear. Long-press on emails will also trigger the System's Text Selection. I am very sure it is a System feature and not an app feature. The text at the webpage and emails are NOT edittexts, any idea how this work ? Upvote 0
If you have time please try this: Open Chrome and view any webpage with text. Long-press on the text and the System's Text Selection menu appear. Long-press on emails will also trigger the System's Text Selection. I am very sure it is a System feature and not an app feature. The text at the webpage and emails are NOT edittexts, any idea how this work ?
L leongcc Member Licensed User Longtime User Jun 20, 2016 #7 mark35at said: But a label does have a click event which you could use to capture all the text, place it in the edittext and then edit it. Click to expand... Yes, this is an application-level implementation using BClipboard. I have been wondering how to use the System Text Selection. Upvote 0
mark35at said: But a label does have a click event which you could use to capture all the text, place it in the edittext and then edit it. Click to expand... Yes, this is an application-level implementation using BClipboard. I have been wondering how to use the System Text Selection.
DonManfred Expert Licensed User Longtime User Jun 20, 2016 #8 leongcc said: The text at the webpage and emails are NOT edittexts, any idea how this work ? Click to expand... a webview behaves much different than a LABEL. Use ANY app (even google apps). search a label in the app and try to copy the text in the way you described. It will NOT work Upvote 0
leongcc said: The text at the webpage and emails are NOT edittexts, any idea how this work ? Click to expand... a webview behaves much different than a LABEL. Use ANY app (even google apps). search a label in the app and try to copy the text in the way you described. It will NOT work