function helpfun(HelpType,Data)
%HELPFUN Guide Help

%   Loren Dean
%   Copyright (c) 1984-98 by The MathWorks, Inc.
%   $Revision: 1.12 $ $Date: 1997/11/21 23:49:22 $

if strcmp(HelpType,'HG Object HTML Doc'),
  html_file=[matlabroot '/help/techdoc/infotool/hgprop/doc_frame.html'];
  html_file = ['file:///' strrep(html_file,filesep,'/')];
  web(html_file);
  return  
end

Topics={'Control Panel'
        'Property Editor'
        'Callback Editor'
        'Alignment Tool'
        'Menu Editor'
        'Controlled Figure'
        'Object Browser'};

Strings={
[ 'The Control Panel allows other Guide tools to be opened,   ' 
  'control of figures to be toggled and objects to be added   '
  'to controlled figures. The top four buttons on the control ' 
  'panel indicate the current state of the other Guide tools. '
  'Clicking on a button will open the appropriate tool.       '
  'Underneath this is the list of figures and their current   ' 
  'state (i.e. controlled or active). Control of a figure may ' 
  'be relinquished or taken by clicking on the listbox.       '
  'Underneath the figure control panel is the list of         '
  'available objects that may be dropped onto a controlled    ' 
  'figure.                                                    '
  '                                                           '
  'Guide is said to be active when the Control Panel is       '
  'running and at least one figure is controlled.             '
]
[ 'Every graphical object in MATLAB has a set of associated          '
  'properties such as color and position. The Property Editor        '
  'lets you view and change these properties. If you are             '
  'unfamiliar with Handle Graphics, you may want to look at          '
  'the documentation on the topic (See the Handle Graphics section   '
  'of "Getting Started with MATLAB").                                '
  '                                                                  '
  'The top part of the Property Editor is the hierarchical           '
  'object browser, which lets you select any of the Handle           '
  'Graphics objects currently available onscreen.                    '
  '                                                                  '
  'Below the object browser you find two editable fields associated  '
  'with the selected object. The one on the left is for entering     '
  'a property name and the one on the right is for entering the value'
  'for that property. When changing properties, you don''t need to    '
  'enter the entire property name; just type in enough to uniquely   '
  'identify the property.                                            '
  '                                                                  '
  'Below the current property is the Property List, a list           '
  'of all available properties associated with the selected object   '
  'and the corresponding value of each of those properties.          '
]
[ 'The Callback Editor allows callback type properties to be '
  'modified by entering them just as they would be entered   '
  'from the command line. Similar to the Property Editor,    '
  'the top of the Callback Editor contains either the        ' 
  'currently selected object(s)'' Type and Tag or it          '
  'contains an Object Browser. Underneath this lies the list ' 
  'of properties which can be modified. Underneath the       '
  'property is the current value of that property.           '
]
[ 'The Alignment Tool allows uicontrols and axes to be  '
  'interactively aligned or distributed with respect to '
  'each other.                                          '
  '                                                     '
  'The top of the Alignment Tool contains an Object     '
  'Browser which lists all uicontrols and axes that can '
  'be aligned. Underneath the Object Browser are the    '
  'alignment controls.                                  '
  '                                                     '
  'Objects may be aligned to each other in both a       '
  'horizontal and vertical direction. The alignment     ' 
  'takes place in the bounding box containing all of    ' 
  'the objects. Objects may also be distributed with    '
  'respect to each other such that the spacing between  ' 
  'each object is equal. Finally, objects may have a    '
  'set spacing placed between them. The spacing option  ' 
  'starts with the object in the lower left corner and  '
  'works its way up and right. This is the only type of '
  'alignment that does not pay attention to the bounding'
  'box which contains the objects.                      '
  '                                                     '
  'It should be noted that there must be more than one  '
  'object selected in order for the alignment tool to   '
  'work.                                                '
]
[ 'The Menu Editor allows the menus on figures to be       ' 
  'interactively modified. Menus can be moved up and down  ' 
  'in the hierarchy through the use of the arrow buttons on' 
  'the left hand side of the tool. The Label, Tag and      '
  'Callback properties can be modified directly on the     '
  'tool. All other properties should be modified with the  ' 
  'Property Editor or the Callback Editor. To view menus   '
  'that are on a controlled figure, the figure must be     '
  'activated.                                              '
]
[ 'A Controlled figure is a figure that has been pointed at   '
  'by the Guide Control Panel. When a figure is controlled,   '
  'objects may be selected, moved, resized, or edited         '
  'interactively. The menus on the figure are stored and a    ' 
  'set of menus related to Guide are inserted in their place. '
  'To view the stored menus, relinquish control of the figure.' 
]
[  'The Object Browser on the Guide tools allows object    '
  'to be selected interactively independent of whether or ' 
  'not a controlled figure exists. If any controlled      '
  'figures exist, only controlled figures and their       '
  'children appear in the Object Browser. If no figures   ' 
  'are controlled, then all objects from Root down appear.'
  'There are three different object browsers. The Property'
  'Editor and the Callback Editor show all objects. The   '
  'Menu Editor only shows figures, uicontextmenus  and    '
  'uimenus. The Alignment Tool only shows figures,        '
  'uicontrols and axes. Selecting an object on any one of '
  'the tools also selects that object on all other tools. '
  '                                                       '
  'There are four columns in the object browser.  The     '
  'first column contains " ", "+" or a "-". A "+"         '
  'indicates that the object has children and can be      '
  'expanded.  A "-" indicates the object has children and '
  'has already been expanded and a blank indicates the    '
  'object has not children.  The second column contains   '
  'the object type.  The third set of information is      '
  'between the parentheses.  This information is          '
  'supplemental and should help in determining what object'
  'is selected.  Finally the last column contains the     '
  'tag of the selected object.                            '
]
};

helpwin([Topics Strings],HelpType,'Guide Help');
