Copying from GUI listbox to Matlab Desktop
Show older comments
Hi,
is there a way to copy (selected) elements listed in a listbox GUI to the buffer (Ctrl-C,etc) and from there to the editor, desktop, or even to sytem?
I was not able to figure out which option of the object would enable this behavior, and I guess there should be possible (as other elements in GUI can get cut and pasted...)
thansk in advance, Daniel
Accepted Answer
More Answers (2)
Walter Roberson
on 8 Nov 2011
0 votes
There is no MATLAB option to enable or disable this. Whether it would work or not would operating system dependent.
You can have the callback for the listbox detect the current Value, and extract the String rows corresponding to the selected elements, and then do something with them. This would require "activating" the listbox, though.
Daniel
on 8 Nov 2011
0 votes
Categories
Find more on Environment and Settings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!