File MIES_InputDialog.ipf

ID Input dialog handling for numeric/text entries

Functions

variable ID_AskUserForSettings(variable mode, string title, wave data, wave mock)

Shows a dialog and queries values from the user.

Different modes

  • ID_HEADSTAGE_SETTINGS Ask for NUM_HEADSTAGES headstage dependent entries and one independent value. All numeric.

  • ID_POPUPMENU_SETTINGS The row dimension labels of data fill the popup menu, and on return data will have a 1 at the selected entry. All numeric.

  • ID_KVPAIRS_SETTINGS Pairs of keys and values, values being the wave element and the key the dimension label. Supports 1 to ID_KVPAIRS_MAX_VALUES text entries.

Parameters:
Returns:

0 on success, 1 if the user cancelled the dialog

static variable ID_SetTitle(string win, string title)
static string ID_GetControl(variable mode, variable index)
static dfref ID_GetFolder(string win)
static wave ID_GetWave(string win)
variable ID_ButtonProc(WMButtonAction *ba)
variable ID_SetVarProc(WMSetVariableAction *sva)
variable ID_PopMenuProc(WMPopupAction *pa)
string ID_GetPopupEntries()