#include "Desk.Wimp.h"
#include "Desk.WimpSWIs.h"
#include "Desk.Icon.h"

extern void Desk_Icon_SetRadios(Desk_window_handle window,
                           Desk_icon_handle first, Desk_icon_handle last,
                           Desk_icon_handle onradio)
/*
 * Pass in a group of icons (specified by lowest-numbered icon and
 * highest-numbered icon), and the icon from this group that you want
 * selected. All icons except the one you want selected will be deselected.
 */
{
  while (first <= last)
    Desk_Icon_Deselect(window, first++);       /* Turn off all between first, last */
  Desk_Icon_Select(window, onradio);           /* Turn on the requested one       */
}
