<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.ch/matlabcentral/newsreader/view_thread/306219</link>
    <title>MATLAB Central Newsreader - Display static text in GUI based on if statement condition</title>
    <description>Feed for thread: Display static text in GUI based on if statement condition</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2013 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.ch/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Wed, 13 Apr 2011 18:36:05 +0000</pubDate>
      <title>Display static text in GUI based on if statement condition</title>
      <link>http://www.mathworks.ch/matlabcentral/newsreader/view_thread/306219#830970</link>
      <author>jb </author>
      <description>Hi,&lt;br&gt;
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 &amp;lt; &amp; &amp;gt; if statement, but i cant find anyway of setting static text to display if the user enters outside of the range..&lt;br&gt;
Thanks&lt;br&gt;
jb</description>
    </item>
    <item>
      <pubDate>Wed, 13 Apr 2011 18:43:05 +0000</pubDate>
      <title>Re: Display static text in GUI based on if statement condition</title>
      <link>http://www.mathworks.ch/matlabcentral/newsreader/view_thread/306219#830973</link>
      <author>Sean de </author>
      <description>"jb" wrote in message &amp;lt;io4qek$cuv$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt; 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 &amp;lt; &amp; &amp;gt; if statement, but i cant find anyway of setting static text to display if the user enters outside of the range..&lt;br&gt;
&amp;gt; Thanks&lt;br&gt;
&amp;gt; jb&lt;br&gt;
&lt;br&gt;
You have to create a static textbox and then set its string property to the warning.&lt;br&gt;
E.g.&lt;br&gt;
&lt;br&gt;
set(handles.static_warning, 'String', 'Enter 1-10!');&lt;br&gt;
&lt;br&gt;
Or you could just use a warndlg.&lt;br&gt;
doc warndlg</description>
    </item>
  </channel>
</rss>
