Nice. I was wondering if anybody has tried to write to a BLOB not from a file but directly from a Matlab matrix variable? Say, a 5x5 double matrix? Skip writing to a .mat and reading back out of the file to save time?
Regarding July 1 post, I created a public property called "Locked" and wrapped the tab callback in TabPanel:
function iTabClicked( src, evt, obj, idx ) %#ok<INUSL>
% Call the user callback before selecting the tab
evt = struct( ...
'Source', obj, ...
'PreviousChild', obj.SelectedChild, ...
'SelectedChild', idx );
uiextras.callCallback( obj.Callback, obj, evt );
obj.SelectedChild = idx;
end % iTabClicked
Setting Locked to true will allow the user to do things on the active tab but will not allow the tab to change. I tried to subclass TabPanel and overload 'onChildAdded' and 'iTabClicked' to do this but couldn't get this to work because of these private properties:
I've got a tab panel where I'd like to implement a 'edit' mode on one of the tabs. The user should NOT be able to change the active tab until she comes out of 'edit' mode. So, during 'edit mode' the tab control should be disabled. The problem is, Enable property on the tab disables the tab kids as well so the user cannot do anything to child controls of the tab while in 'edit' mode. I'm not allowed to subsequently change Enable on kids either. I see in your code where to change this. Should I just subclass the TabPanel and implement what I describe. Your comments? Suggestions?
Does not work for linux, because it uses the function "ismac" instead of isunix.
Additionally, I do not see why the wildcard should be set to an empty string on a mac, a '*' would make more sense, right?
Why not use the Matlab-original function 'what'? At least for Matlab-related files, it gives you exactly what you want to do with getfilenames.