|
"jb" wrote in message <io4qek$cuv$1@fred.mathworks.com>...
> Hi,
> I would like to display Static text on a GUI screen based on an user defined input. The user has a possible range to choose from ( "enter between 1-10") through an edit box or 'string' entry. If the user enters a number outside of this range I want to display a static text waring saying "Please enter inside the range of 1-10". I can read in the entered string and preform a < & > if statement, but i cant find anyway of setting static text to display if the user enters outside of the range..
> Thanks
> jb
You have to create a static textbox and then set its string property to the warning.
E.g.
set(handles.static_warning, 'String', 'Enter 1-10!');
Or you could just use a warndlg.
doc warndlg
|