Microscopy Image Browser 2.91
MIB
Loading...
Searching...
No Matches
editbox_Callback.m File Reference

Check for entered values in an edit box. More...

Functions

function status = editbox_Callback (hObject, chtype, default_val, variation, hFocus)
 Check for entered values in an edit box.
 

Detailed Description

Check for entered values in an edit box.

Function Documentation

◆ editbox_Callback()

function status = editbox_Callback ( hObject,
chtype,
default_val,
variation,
hFocus )

Check for entered values in an edit box.

Parameters
hObjecthandle to the editbox
chtype- required type of the input
  • 'int' -> positive and negative integers
  • 'pint' -> positive integers
  • 'float' -> positive and negative floats
  • 'pfloat' -> positive floats and zero
  • 'intrange' -> range of integers without zero
  • 'posintx2' -> two integers separated with comma
default_val- [optional], default value if the input is wrong. default is 1
variation[optional] a variation of the input, a vector [minValue, maxValue]
hFocus[optional], a handle of uicontroller (such as button to obtain the focus)
Return values
statusresult of the function:
  • - fail
  • - success
Required fields of hObject:

Referenced by mibGUI>mibImfiltPar1Edit_Callback(), mibGUI>mibImfiltPar2Edit_Callback(), mibMeasureToolGUI>checkEditbox_Callback(), and mibAnnotationsController.precisionEdit_Callback().

Here is the caller graph for this function: