How to create an uicontrol with selectable but non-editable text.
Mostrar comentarios más antiguos
I want to allow user copy a text (or it's part) into clipboard in usual manner (selecting by mouse and pressing Ctrl-C). How to make it? A 'text' style uicontrol doesn't permit selection. Оn the other hand, an 'edit' style permits selection and copying to clipbord but also allows editing what is not desirable.
Respuestas (2)
1 comentario
Ameer Hamza
el 25 de Abr. de 2018
Worth mentioning that findjobj is not a MATLAB built-in function. It is available FEX::findjobj here.
Walter Roberson
el 25 de Abr. de 2018
0 votos
Hack the Java objects underlying the uicontrol.
But first experiment with setting the uicontrol enable property to 'disable'. The result is a uicontrol that can still scroll but not be edited. I do not recall whether it is selectable.
Categorías
Más información sobre Environment and Settings en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!