# disableMenuBar

## PURPOSE

Customizes the figure toolbars. Input argument is the figure handle (hf)

## SYNOPSIS

function disableMenuBar(hf)

## DESCRIPTION

     Customizes the figure toolbars. Input argument is the figure handle (hf)

## CROSS-REFERENCE INFORMATION

This function calls:

This function is called by:

## SOURCE CODE

    0001 function disableMenuBar(hf)
    0002 % Customizes the figure toolbars. Input argument is the figure handle (hf)
    0003
    0004 all_tools = findall(hf); % finds hidden tools
    0005 hide_tools = findall(all_tools,'ToolTipString','Show Plot Tools and Dock Figure');
    0006 hide_tools = vertcat(hide_tools,findall(all_tools,'ToolTipString','Hide Plot Tools'));
    0007 hide_tools = vertcat(hide_tools,findall(all_tools,'ToolTipString','Open File'));
    0008 hide_tools = vertcat(hide_tools,findall(all_tools,'ToolTipString','New Figure'));
    0009 hide_tools = vertcat(hide_tools,findall(all_tools,'ToolTipString','Insert Legend'));
    0010 hide_tools = vertcat(hide_tools,findall(all_tools,'ToolTipString','Insert Colorbar'));
    0011 hide_tools = vertcat(hide_tools,findall(all_tools,'ToolTipString','Data Cursor'));
    0012 hide_tools = vertcat(hide_tools,findall(all_tools,'ToolTipString','Rotate 3D'));
    0013 hide_tools = vertcat(hide_tools,findall(all_tools,'ToolTipString','Save'));
    0014 hide_tools = vertcat(hide_tools,findall(all_tools,'ToolTipString','Brush/Select Data'));
    0015 hide_tools = vertcat(hide_tools,findall(all_tools,'ToolTipString','Link Plot'));
    0016 set(hide_tools,'Visible','Off')
    0017
    0018 hide_menu = findall(all_tools,'tag','figMenuDesktop');
    0019 hide_menu = vertcat(hide_menu,findall(all_tools,'tag','figMenuWindow'));
    0020 hide_menu = vertcat(hide_menu,findall(all_tools,'tag','figMenuTools'));
    0021 hide_menu = vertcat(hide_menu,findall(all_tools,'tag','figMenuInsert'));
    0022 set(hide_menu,'visible','off')