mod/maxgui.mod/fltkmaxgui.mod/src/Fl_Menu_.cxx
int Fl_Menu_::find_index(Fl_Callback *cb) const {
  for ( int t=0; t < size(); t++ )
    if (menu_[t].callback_==cb)
      return(t);
  return(-1);
}
/**
 Find the index into the menu array for a given callback \p cb.
 
 This method finds a menu item's index position, also traversing submenus, but
 not submenu pointers. This is useful if an application uses internationalisation
 and a menu item can not be found using its label. This search is also much faster.
 
 \param cb Find the first item with this callback
 \returns  The index of the item with the specific callback, or -1 if not found
 \see      find_index(const char*)
 */
Find the index into the menu array for a given callback \p cb.
This method finds a menu item's index position, also traversing submenus, but
not submenu pointers. This is useful if an application uses internationalisation
and a menu item can not be found using its label. This search is also much faster.

\param cb Find the first item with this callback
\returns  The index of the item with the specific callback, or -1 if not found
\see      find_index(const char*)
Find the index into the menu array for a given callback \ p cb . This method finds a menu item ' s index position also traversing submenus but not submenu pointers . This is useful if an application uses internationalisation and a menu item can not be found using its label . This search is also much faster . \ param cb Find the first item with this callback \ returns The index of the item with the specific callback or - 1 if not found \ see find_index ( const char * )
int Fl_Menu_::find_index(Fl_Callback *cb) const {
  for ( int t=0; t < size(); t++ )
    if (menu_[t].callback_==cb)
      return(t);
  return(-1);
}
int Fl_Menu_ :: find_index ( Fl_Callback * cb ) const { for ( int t = 0 ; t < size ( ) ; t ++ ) if ( menu_ [ t ] . callback_ == cb ) return ( t ) ; return ( -1 ) ; }
Find the index into the menu array for a given callback \p cb.
Find the index into the menu array for a given callback \ p cb .