Reputation: 3803
I have a list box that contains some existed file names. I have a push button. User select the file needed and after that click on push button to open it. Is any way to open a file when user double click on the file name of the file in list box?
Upvotes: 0
Views: 1133
Reputation: 3849
You can use the Callback of the uicontrol listbox, along with the SelectionType property of the figure object. You can find an example in MATLAB documentation here.
Upvotes: 1