function val = get(A,prop)
%FIGOBJ/GET

%   Copyright 1984-2000 The MathWorks, Inc. 
%   $Revision: 1.12 $  $Date: 2000/08/01 22:09:54 $
%   J.H. Roh 

switch prop
case 'Selection'
   val = A.DragObjects.Items;
case 'MyHGHandle'
   val = get(A.aChild,'Parent');
case 'HGHandle'
   val = get(A.aChild,'Parent');
case 'MyHandle'
   figHG = get(A.aChild,'Parent');
   figUD = getscribeobjectdata(figHG);
   try
      val = figUD.HandleStore;
   catch
      error('HGOBJ has no handle...');
   end
case 'Figure'
   figHG = get(A.aChild, 'Parent');
   val = figHG;
case 'IsSelected'
    %Figures can not be dragged
    val = 0;
otherwise
   figHG = get(A.aChild, 'Parent');
   val = get(figHG, prop);
end   
