<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Setting line position in an edit-box uicontrol	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/setting-line-position-in-edit-box-uicontrol/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/setting-line-position-in-edit-box-uicontrol?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=setting-line-position-in-edit-box-uicontrol</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Wed, 07 Jun 2017 00:16:48 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>
		By: Scott		</title>
		<link>https://undocumentedmatlab.com/articles/setting-line-position-in-edit-box-uicontrol#comment-408099</link>

		<dc:creator><![CDATA[Scott]]></dc:creator>
		<pubDate>Wed, 07 Jun 2017 00:16:48 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=81#comment-408099</guid>

					<description><![CDATA[I&#039;m now using R2017a, and code that used to work with anchorToBottom is no longer working... any ideas?
&lt;pre lang=&quot;matlab&quot;&gt;
&gt;&gt; str = {&#039;multi&#039;,&#039;line&#039;,&#039;editbox&#039;};
&gt;&gt; hEdit = uicontrol(&#039;style&#039;,&#039;edit&#039;,&#039;max&#039;,3,&#039;string&#039;,str);
&gt;&gt; jhEdit = findjobj(hEdit)
jhEdit =
    1×0 empty handle
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m now using R2017a, and code that used to work with anchorToBottom is no longer working&#8230; any ideas?</p>
<pre lang="matlab">
>> str = {'multi','line','editbox'};
>> hEdit = uicontrol('style','edit','max',3,'string',str);
>> jhEdit = findjobj(hEdit)
jhEdit =
    1×0 empty handle
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ana GG		</title>
		<link>https://undocumentedmatlab.com/articles/setting-line-position-in-edit-box-uicontrol#comment-358863</link>

		<dc:creator><![CDATA[Ana GG]]></dc:creator>
		<pubDate>Tue, 13 Oct 2015 14:45:11 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=81#comment-358863</guid>

					<description><![CDATA[Hello,
This seems to work fine for editbox, but how can this be extended to a cell of uitable?
My specific problem is: I have a hint text on a specific editable (text) cell of a table. When I click this cell I want the text to disappear but still I want the cursor to be in the cell to introduce the new value. I have done the first part, but to be able to write on this cell I need to click again, and it would be good if I didn&#039;t have to do it.
Thank you very much in advance,
Ana]]></description>
			<content:encoded><![CDATA[<p>Hello,<br />
This seems to work fine for editbox, but how can this be extended to a cell of uitable?<br />
My specific problem is: I have a hint text on a specific editable (text) cell of a table. When I click this cell I want the text to disappear but still I want the cursor to be in the cell to introduce the new value. I have done the first part, but to be able to write on this cell I need to click again, and it would be good if I didn&#8217;t have to do it.<br />
Thank you very much in advance,<br />
Ana</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Tiago		</title>
		<link>https://undocumentedmatlab.com/articles/setting-line-position-in-edit-box-uicontrol#comment-312557</link>

		<dc:creator><![CDATA[Tiago]]></dc:creator>
		<pubDate>Mon, 03 Feb 2014 10:01:02 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=81#comment-312557</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/setting-line-position-in-edit-box-uicontrol#comment-312235&quot;&gt;Yair Altman&lt;/a&gt;.

Thanks Yair, the EDT mixup page was helpful. Managed to get my GUI working as I wanted it to.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/setting-line-position-in-edit-box-uicontrol#comment-312235">Yair Altman</a>.</p>
<p>Thanks Yair, the EDT mixup page was helpful. Managed to get my GUI working as I wanted it to.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/setting-line-position-in-edit-box-uicontrol#comment-312235</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Fri, 31 Jan 2014 11:28:42 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=81#comment-312235</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/setting-line-position-in-edit-box-uicontrol#comment-312230&quot;&gt;Tiago Silva&lt;/a&gt;.

@Tiago - I believe that this is another case of &lt;a href=&quot;http://undocumentedmatlab.com/blog/matlab-and-the-event-dispatch-thread-edt/&quot; rel=&quot;nofollow&quot;&gt;EDT mixup&lt;/a&gt;.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/setting-line-position-in-edit-box-uicontrol#comment-312230">Tiago Silva</a>.</p>
<p>@Tiago &#8211; I believe that this is another case of <a href="http://undocumentedmatlab.com/blog/matlab-and-the-event-dispatch-thread-edt/" rel="nofollow">EDT mixup</a>.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Tiago Silva		</title>
		<link>https://undocumentedmatlab.com/articles/setting-line-position-in-edit-box-uicontrol#comment-312230</link>

		<dc:creator><![CDATA[Tiago Silva]]></dc:creator>
		<pubDate>Fri, 31 Jan 2014 11:05:46 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=81#comment-312230</guid>

					<description><![CDATA[Hello Yair,

I&#039;m trying to use something similar to this in order to remember the position of a uitable scrollbar after a data update. My problem is that although I got it work, it only really works in debug mode. The gui I&#039;m developing is fairly complicated, but even a simple example code like the following only works as I&#039;d expect it to do in debug mode:

&lt;pre lang=&quot;matlab&quot;&gt;
h = uitable;
set(h,&#039;Data&#039;,rand(20));
pause(1);
jh = findjobj(h);
jhScroll = jh.getVerticalScrollBar;
position = 100;
set(h,&#039;Data&#039;,rand(20));
jhScroll.setValue(position);
&lt;/pre&gt;

When running this with breakpoints and stepping each line at a time I end up with the uitable updated and the scrollbar at the bottom, as I expected it to behave. Executing the code normally, I can see the uitable is updated but I end up with the scrollbar at the top.

Any idea of what I might be doing wrong? Thanks in advance.]]></description>
			<content:encoded><![CDATA[<p>Hello Yair,</p>
<p>I&#8217;m trying to use something similar to this in order to remember the position of a uitable scrollbar after a data update. My problem is that although I got it work, it only really works in debug mode. The gui I&#8217;m developing is fairly complicated, but even a simple example code like the following only works as I&#8217;d expect it to do in debug mode:</p>
<pre lang="matlab">
h = uitable;
set(h,'Data',rand(20));
pause(1);
jh = findjobj(h);
jhScroll = jh.getVerticalScrollBar;
position = 100;
set(h,'Data',rand(20));
jhScroll.setValue(position);
</pre>
<p>When running this with breakpoints and stepping each line at a time I end up with the uitable updated and the scrollbar at the bottom, as I expected it to behave. Executing the code normally, I can see the uitable is updated but I end up with the scrollbar at the top.</p>
<p>Any idea of what I might be doing wrong? Thanks in advance.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/setting-line-position-in-edit-box-uicontrol#comment-240617</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Fri, 16 Aug 2013 09:32:22 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=81#comment-240617</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/setting-line-position-in-edit-box-uicontrol#comment-240067&quot;&gt;Thomas&lt;/a&gt;.

@Thomas, perhaps this is done when the control is still not visible, perhaps you&#039;re modifying the control in Matlab later on (this resets the underlying component), perhaps something else. You&#039;ll need to debug it step-by-step to see where the problem is.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/setting-line-position-in-edit-box-uicontrol#comment-240067">Thomas</a>.</p>
<p>@Thomas, perhaps this is done when the control is still not visible, perhaps you&#8217;re modifying the control in Matlab later on (this resets the underlying component), perhaps something else. You&#8217;ll need to debug it step-by-step to see where the problem is.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Thomas		</title>
		<link>https://undocumentedmatlab.com/articles/setting-line-position-in-edit-box-uicontrol#comment-240067</link>

		<dc:creator><![CDATA[Thomas]]></dc:creator>
		<pubDate>Thu, 15 Aug 2013 14:56:11 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=81#comment-240067</guid>

					<description><![CDATA[Hi Yair,

I have a multi-line editbox with a scrollbar (vertical as needed) and I want it, when activted, to be always on the botton.
I tryed this
 &lt;pre lang=&quot;matlab&quot;&gt; 
jVScroll = jScrollPane.getVerticalScrollBar;
jVScroll.setValue(jVScroll.getMaximum);
jScrollPane.repaint; &lt;/pre&gt; and this
 &lt;pre lang=&quot;matlab&quot;&gt; 
jhEdit = findjobj(handles.my_editbox);
jhEdit.anchorToBottom; &lt;/pre&gt; but didn&#039;t work... Can you tell me what am I doing wrong?
Thanks]]></description>
			<content:encoded><![CDATA[<p>Hi Yair,</p>
<p>I have a multi-line editbox with a scrollbar (vertical as needed) and I want it, when activted, to be always on the botton.<br />
I tryed this</p>
<pre lang="matlab"> 
jVScroll = jScrollPane.getVerticalScrollBar;
jVScroll.setValue(jVScroll.getMaximum);
jScrollPane.repaint; </pre>
<p> and this</p>
<pre lang="matlab"> 
jhEdit = findjobj(handles.my_editbox);
jhEdit.anchorToBottom; </pre>
<p> but didn&#8217;t work&#8230; Can you tell me what am I doing wrong?<br />
Thanks</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: RK MacLean		</title>
		<link>https://undocumentedmatlab.com/articles/setting-line-position-in-edit-box-uicontrol#comment-128207</link>

		<dc:creator><![CDATA[RK MacLean]]></dc:creator>
		<pubDate>Fri, 30 Nov 2012 23:02:06 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=81#comment-128207</guid>

					<description><![CDATA[Using another one of Yair&#039;s suggestions worked better for me:

&lt;pre lang=&quot;matlab&quot;&gt; 
jhEdit = findjobj(handles.status_text);
jhEdit.anchorToBottom;
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>Using another one of Yair&#8217;s suggestions worked better for me:</p>
<pre lang="matlab"> 
jhEdit = findjobj(handles.status_text);
jhEdit.anchorToBottom;
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Nick		</title>
		<link>https://undocumentedmatlab.com/articles/setting-line-position-in-edit-box-uicontrol#comment-82023</link>

		<dc:creator><![CDATA[Nick]]></dc:creator>
		<pubDate>Wed, 18 Apr 2012 13:37:28 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=81#comment-82023</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/setting-line-position-in-edit-box-uicontrol#comment-57484&quot;&gt;Johannes&lt;/a&gt;.

Johannes,

Similar to you, I&#039;m adding a console/log window to a GUI and would like the scroll bar at the bottom.  With a list box, were you able to get rid of the &#039;jump&#039; problem altogether?

I think there might be a solution using an edit box by diving deeper into the underlying Java. However, I have only recently started using the findjobj utility, so I could be wrong about that.

Nick]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/setting-line-position-in-edit-box-uicontrol#comment-57484">Johannes</a>.</p>
<p>Johannes,</p>
<p>Similar to you, I&#8217;m adding a console/log window to a GUI and would like the scroll bar at the bottom.  With a list box, were you able to get rid of the &#8216;jump&#8217; problem altogether?</p>
<p>I think there might be a solution using an edit box by diving deeper into the underlying Java. However, I have only recently started using the findjobj utility, so I could be wrong about that.</p>
<p>Nick</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sainath M		</title>
		<link>https://undocumentedmatlab.com/articles/setting-line-position-in-edit-box-uicontrol#comment-72868</link>

		<dc:creator><![CDATA[Sainath M]]></dc:creator>
		<pubDate>Tue, 31 Jan 2012 10:40:23 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=81#comment-72868</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/setting-line-position-in-edit-box-uicontrol#comment-72823&quot;&gt;Sainath M&lt;/a&gt;.

I can able to work now...
Thank you..]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/setting-line-position-in-edit-box-uicontrol#comment-72823">Sainath M</a>.</p>
<p>I can able to work now&#8230;<br />
Thank you..</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
