TblMaker/fltk/src/Fl_Menu_.cxx
/** Turns the radio item "on" for the menu item and turns "off" adjacent radio items set.
 \deprecated This method is dangerous if radio items are first in the menu.
 Use Fl_Menu_::setonly(Fl_Menu_Item*) instead.
 */
Turns the radio item "on" for the menu item and turns "off" adjacent radio items set.
\deprecated This method is dangerous if radio items are first in the menu.
Turns the radio item " on " for the menu item and turns " off " adjacent radio items set . \ deprecated This method is dangerous if radio items are first in the menu .
void Fl_Menu_Item::setonly() {
  flags |= FL_MENU_RADIO | FL_MENU_VALUE;
  Fl_Menu_Item* j;
  for (j = this; ; ) {	
    if (j->flags & FL_MENU_DIVIDER) break; 
    j++;
    if (!j->text || !j->radio()) break; 
    j->clear();
  }
  for (j = this-1; ; j--) { 
    if (!j->text || (j->flags&FL_MENU_DIVIDER) || !j->radio()) break;
    j->clear();
  }
}
void Fl_Menu_Item :: setonly ( ) { flags |= FL_MENU_RADIO | FL_MENU_VALUE ; Fl_Menu_Item * j ; for ( j = this ; ; ) { if ( j -> flags & FL_MENU_DIVIDER ) break ; j ++ ; if ( ! j -> text || ! j -> radio ( ) ) break ; j -> clear ( ) ; } for ( j = this - 1 ; ; j -- ) { if ( ! j -> text || ( j -> flags & FL_MENU_DIVIDER ) || ! j -> radio ( ) ) break ; j -> clear ( ) ; } }
Turns the radio item "on" for the menu item and turns "off" adjacent radio items set.
Turns the radio item " on " for the menu item and turns " off " adjacent radio items set .
// go down // stop on divider lines // stop after group // go up