mod/maxgui.mod/fltkmaxgui.mod/src/Fl_Menu_.cxx
void Fl_Menu_Item::setonly() {
  flags |= FL_MENU_RADIO | FL_MENU_VALUE;
  Fl_Menu_Item* j;
  for (j = this; ; ) {	// go down
    if (j->flags & FL_MENU_DIVIDER) break; // stop on divider lines
    j++;
    if (!j->text || !j->radio()) break; // stop after group
    j->clear();
  }
  for (j = this-1; ; j--) { // go up
    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.
Turns the radio item " on " for the menu item and turns off adjacent radio items set .
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