www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@xregGui/@dividerline/doOrientation.m

    function doOrientation(h)
%DOORIENTATION  post-orientation set actions
%
%  h.doOrientation;
%

%  Copyright 2000-2011 The MathWorks, Inc. and Ford Global Technologies, Inc.



% Created 10/4/2001

h.OrientState=find( strncmp( h.Orientation,{ 'horizontal'; 'vertical'},length(h.Orientation) ) )-1;
opts={'horizontal','vertical'};
h.Orientation=opts{h.OrientState+1};