Hi Elmar, You have done an excellent job with tabpanel constructor. I had created a tabbed gui which used to work before. Now when I want to edit, I get the error saying that the gui file is not found. In fact I have the the fig file in the same directory. My gui name is primitivesGui. But the error message says primitivesgui.fig not found. Is there a problem if the filename contains capital letters? when I renamed with small letters, I have some other error. Conversion to double from cell is not possible. Error in ==>tabpanel/tabpanel.p>tabpanel at 166. Any clues?
@Spigge - All edit box formats with dialog prompts are implemented with uicontrol's ButtonDownFcn (instead of Callback) and Enable='inactive'. So, in order for you to toggle the dir edit box Enable state, you need to do the following:
From Enabled -> Disabled
1. Save dir edit's ButtonDownFcn (I usually use the edit's UserData property)
2. Set edit's Enable to 'off' and ButtonDownFcn to  (and UserData with the callback function)
1. Retrieve the saved ButtonDownFcn callback
2. Set edit's Enable to 'inactive' and reinstate ButtonDownFcn
Hope this helps
I have created a check box that controls the enable state of an edit text box with the format 'dir'. The edit box is initially disabled (grayed) and gets enabled (white) when the check box is checked and back to disabled when the check box is unchecked. So far so good. The problem is that the default behaviour of the edit box on mouse click, which is to open a file dialog (via UIGETDIR) and then display the selected directory as a string in the edit box, is lost when disabled and enabled this way. Instead it behaves like a normal edit box of format 'text'. Why does this happen and how can I get it to work properly you think?
Does not work under Ubuntu 12.04, Matlab 2012a
Figure name has Upper and lower case
The tabpanel is called "tabPanel"
Calling tabpanel('My_Figure.fig', 'tabPanel')
creats a pop up message : file 'my_figure.fig' not found.
fh = openfig('My_Figure.fig');
1 0 0 -1 -1 -1 0 0