def widget n
      case n
      when Integer
        @form.widgets[n]
      when String, Symbol
        @form.by_name[n] 
      else
        raise "messagebox.widget can't handle #{n.class} "
      end
    end
def widget n
      case n
      when Integer
        @form.widgets[n]
      when String, Symbol
        @form.by_name[n] 
      else
        raise "messagebox.widget can't handle #{n.class} "
      end
    end
returns a widget based on offset, or name (if you gave it a :name)
 e.g. a list was declared and we wish to know the selected_indices