Undocumented Secrets of MATLAB
®
-Java Programming592
% Transform HG double to handle obj, so extra props will become visible in
get()
hDivider = handle(hDivider);
set(double(hDivider), 'UserData', hDivider);
%end % addDivider %#ok ML6
%% Add a sub-pane to a parent container
function h = addSubPane(hParent,hPos)
try
% Try a uipanel first...
h = uipanel('parent',hParent, 'units','norm', 'position',hPos, ...
'bordertype','none', 'tag','uisplitpane');
catch
% Error - probably Matlab 6... - try using a frame instead of a panel
h = uicontrol('parent',hParent, 'style','frame', 'enable', 'inactive', ...
'units','norm', 'position',hPos, 'tag','uisplitpane');
end
%end % addSubPane %#ok ML6
%% Divider one-click callback function
function dividerActionCallback(varargin) ...