function tgl_grd

% function tgl_grd
%
% This function is used in conjunction with FD3.  It is the CallBack for the
% bump menu item.  It flip/flops between the 'Grid On' and 'Grid Off' mode
% and adjusts the grid status flag -- FD3STATUS(2).
%
% ACP

% Last update:  July 11, 1993
% Author:       Adrian C. Penisson

global FD3MENUS FD3STATUS FD3AXES

child=get(FD3MENUS(6),'Children');
if FD3STATUS(2)
   set(child(1),'Label','Grid On');
else
   set(child(1),'Label','Grid Off');
end
FD3STATUS(2)=~FD3STATUS(2);
if gca~=FD3AXES(1)
   axes(FD3AXES(1))
end
grid
restack
