User Function Reference    
selectdlg

Generate a scrolled column selection dialog.

Syntax

Choice = selectdlg(Itemlist)
Choice = selectdlg(Itemlist, Header)
Choice = selectdlg(Itemlist, Header, Mode)
Choice = selectdlg(Itemlist, Header, Mode, Default)

Description

selectdlg displays a column of radio buttons in a fixed size figure window. The calling process is stopped to await the user selection. The buttons selected by the user are returned as Choice, an index into the Itemlist cell array. [] is returned if no selection is made, or the dialog is cancelled or closed.

Choice = selectdlg(Itemlist) Itemlist is a string cell array.

Choice = selectdlg(Itemlist, Header) Header is a prompt string displayed at the top of the slection list.

Choice = selectdlg(Itemlist, Header, Mode) Mode determines whether the user can make multiple selections - 0 for multiple (default), 1 for single.

Choice = selectdlg(Itemlist, Header, Mode, Default) Default is a vector of indexes to the buttons initially selected.

Examples

Example 1. Make a simple selection.

%Create a simple selection of numbers
  items={'One','Two','Three','Four','Five','Six','Seven','Eight','Nine'};
  sel = selectdlg(items); 
  items(sel) 

See Also

menu, selectdlg2, selectdlg3, listdlg, listdlg2


  dispdlg selectdlg2