<?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: Undocumented mouse pointer functions	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/undocumented-mouse-pointer-functions/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/undocumented-mouse-pointer-functions?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=undocumented-mouse-pointer-functions</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Thu, 30 Jul 2015 14:27:58 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>
		By: Armindo		</title>
		<link>https://undocumentedmatlab.com/articles/undocumented-mouse-pointer-functions#comment-354117</link>

		<dc:creator><![CDATA[Armindo]]></dc:creator>
		<pubDate>Thu, 30 Jul 2015 14:27:58 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=601#comment-354117</guid>

					<description><![CDATA[Hi,

I try to use the:
function moveptr(hAx, x, y)

However I get the following error 

Undefined function &#039;getpos&#039; for input arguments of type
&#039;matlab.graphics.axis.Axes&#039;.

How Can I solve this issue?]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>I try to use the:<br />
function moveptr(hAx, x, y)</p>
<p>However I get the following error </p>
<p>Undefined function &#8216;getpos&#8217; for input arguments of type<br />
&#8216;matlab.graphics.axis.Axes&#8217;.</p>
<p>How Can I solve this issue?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Michel Bertrand		</title>
		<link>https://undocumentedmatlab.com/articles/undocumented-mouse-pointer-functions#comment-351280</link>

		<dc:creator><![CDATA[Michel Bertrand]]></dc:creator>
		<pubDate>Sun, 14 Jun 2015 19:46:19 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=601#comment-351280</guid>

					<description><![CDATA[I just saw on Matlab FEX,an overob2 wich is 90%+ a copy of overobj2 found on undocumentedMatlab (posted in 2009?), without any acknowledgments!!.]]></description>
			<content:encoded><![CDATA[<p>I just saw on Matlab FEX,an overob2 wich is 90%+ a copy of overobj2 found on undocumentedMatlab (posted in 2009?), without any acknowledgments!!.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/undocumented-mouse-pointer-functions#comment-348850</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Tue, 05 May 2015 16:09:14 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=601#comment-348850</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/undocumented-mouse-pointer-functions#comment-348844&quot;&gt;Tal Kenig&lt;/a&gt;.

@Tal - the article is 6 years old, and &lt;i&gt;&lt;b&gt;overobj2&lt;/b&gt;&lt;/i&gt; itself is several years older than that, way before HG2 was even contemplated. If anything, I&#039;m surprised that it worked well all the way till now. Anyway, I&#039;ve updated the code for HG2, although (alas) not for the uitab issue that you mentioned. I&#039;ll leave that as an exercise to the reader... :-)]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/undocumented-mouse-pointer-functions#comment-348844">Tal Kenig</a>.</p>
<p>@Tal &#8211; the article is 6 years old, and <i><b>overobj2</b></i> itself is several years older than that, way before HG2 was even contemplated. If anything, I&#8217;m surprised that it worked well all the way till now. Anyway, I&#8217;ve updated the code for HG2, although (alas) not for the uitab issue that you mentioned. I&#8217;ll leave that as an exercise to the reader&#8230; 🙂</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Tal Kenig		</title>
		<link>https://undocumentedmatlab.com/articles/undocumented-mouse-pointer-functions#comment-348844</link>

		<dc:creator><![CDATA[Tal Kenig]]></dc:creator>
		<pubDate>Tue, 05 May 2015 14:55:30 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=601#comment-348844</guid>

					<description><![CDATA[Hi Yair.
Just two comments:
1. With HG2 (R2014b), your overobj2() does not work:
&lt;pre lang=&quot;matlab&quot;&gt;
fig = get(0,&#039;PointerWindow&#039;); 
&lt;/pre&gt;
should be replaced with:
&lt;pre lang=&quot;matlab&quot;&gt;
fig = matlab.ui.internal.getPointerWindow(); 
&lt;/pre&gt;
2. It fails when the desired object is a uitab child - the position is referred to relative to the figure object and not the actual parent. It would be nice if the function would convert the object position to figure units.

Best regards, 
Tal.]]></description>
			<content:encoded><![CDATA[<p>Hi Yair.<br />
Just two comments:<br />
1. With HG2 (R2014b), your overobj2() does not work:</p>
<pre lang="matlab">
fig = get(0,'PointerWindow'); 
</pre>
<p>should be replaced with:</p>
<pre lang="matlab">
fig = matlab.ui.internal.getPointerWindow(); 
</pre>
<p>2. It fails when the desired object is a uitab child &#8211; the position is referred to relative to the figure object and not the actual parent. It would be nice if the function would convert the object position to figure units.</p>
<p>Best regards,<br />
Tal.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/undocumented-mouse-pointer-functions#comment-339980</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Thu, 04 Dec 2014 21:27:21 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=601#comment-339980</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/undocumented-mouse-pointer-functions#comment-339923&quot;&gt;David M&lt;/a&gt;.

@David - changing the component cursor works well for me. In fact, the default JPasswordField cursor is the text cursor, so in theory you don&#039;t need to set the cursor at all. So I suspect that there is something very specific on your system that causes this component to misbehave for some reason.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/undocumented-mouse-pointer-functions#comment-339923">David M</a>.</p>
<p>@David &#8211; changing the component cursor works well for me. In fact, the default JPasswordField cursor is the text cursor, so in theory you don&#8217;t need to set the cursor at all. So I suspect that there is something very specific on your system that causes this component to misbehave for some reason.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: David M		</title>
		<link>https://undocumentedmatlab.com/articles/undocumented-mouse-pointer-functions#comment-339923</link>

		<dc:creator><![CDATA[David M]]></dc:creator>
		<pubDate>Thu, 04 Dec 2014 13:50:57 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=601#comment-339923</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/undocumented-mouse-pointer-functions#comment-339867&quot;&gt;David M&lt;/a&gt;.

Yair,

Thank you for the timely reply. However, after adding your line of code, the cursor still will not change to a &#039;text cursor&#039; shape. Might there be another solution? I am using R2014a.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/undocumented-mouse-pointer-functions#comment-339867">David M</a>.</p>
<p>Yair,</p>
<p>Thank you for the timely reply. However, after adding your line of code, the cursor still will not change to a &#8216;text cursor&#8217; shape. Might there be another solution? I am using R2014a.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/undocumented-mouse-pointer-functions#comment-339880</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Thu, 04 Dec 2014 06:41:05 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=601#comment-339880</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/undocumented-mouse-pointer-functions#comment-339867&quot;&gt;David M&lt;/a&gt;.

@David - 
&lt;pre lang=&#039;matlab&#039;&gt;jPasswordField.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.TEXT_CURSOR));&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/undocumented-mouse-pointer-functions#comment-339867">David M</a>.</p>
<p>@David &#8211; </p>
<pre lang='matlab'>jPasswordField.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.TEXT_CURSOR));</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: David M		</title>
		<link>https://undocumentedmatlab.com/articles/undocumented-mouse-pointer-functions#comment-339867</link>

		<dc:creator><![CDATA[David M]]></dc:creator>
		<pubDate>Thu, 04 Dec 2014 04:10:50 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=601#comment-339867</guid>

					<description><![CDATA[Hi Yair,

In the following example, my cursor pointer will not seem to change from the &#039;default cursor&#039; shape to the &#039;text cursor&#039; shape whenever I hover my cursor over the Password field edit box (that is, inside the bounds of the Password field box). How can I get my cursor to change to a &#039;text cursor&#039; shape inside the bounds of the password field box?

&lt;pre lang=&quot;matlab&quot;&gt;
figure1 = figure
jPasswordField = javax.swing.JPasswordField;
[jhPasswordField, hContainer] = javacomponent(jPasswordField, [20 20 100 40], figure1);
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>Hi Yair,</p>
<p>In the following example, my cursor pointer will not seem to change from the &#8216;default cursor&#8217; shape to the &#8216;text cursor&#8217; shape whenever I hover my cursor over the Password field edit box (that is, inside the bounds of the Password field box). How can I get my cursor to change to a &#8216;text cursor&#8217; shape inside the bounds of the password field box?</p>
<pre lang="matlab">
figure1 = figure
jPasswordField = javax.swing.JPasswordField;
[jhPasswordField, hContainer] = javacomponent(jPasswordField, [20 20 100 40], figure1);
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/undocumented-mouse-pointer-functions#comment-332971</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Wed, 01 Oct 2014 05:18:59 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=601#comment-332971</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/undocumented-mouse-pointer-functions#comment-332942&quot;&gt;Chad&lt;/a&gt;.

@Chad - you would need to modify the &lt;b&gt;Cursor&lt;/b&gt; property (or using the &lt;i&gt;setCursor&lt;/i&gt; accessor method) of the various Java components that comprise the Matlab Desktop, as explained in other articles on this website (e.g. &lt;a href=&quot;http://undocumentedmatlab.com/blog/findjobj-find-underlying-java-object&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt; and &lt;a href=&quot;http://undocumentedmatlab.com/blog/changing-matlab-command-window-colors&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;).]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/undocumented-mouse-pointer-functions#comment-332942">Chad</a>.</p>
<p>@Chad &#8211; you would need to modify the <b>Cursor</b> property (or using the <i>setCursor</i> accessor method) of the various Java components that comprise the Matlab Desktop, as explained in other articles on this website (e.g. <a href="http://undocumentedmatlab.com/blog/findjobj-find-underlying-java-object" rel="nofollow">here</a> and <a href="http://undocumentedmatlab.com/blog/changing-matlab-command-window-colors" rel="nofollow">here</a>).</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Chad		</title>
		<link>https://undocumentedmatlab.com/articles/undocumented-mouse-pointer-functions#comment-332942</link>

		<dc:creator><![CDATA[Chad]]></dc:creator>
		<pubDate>Wed, 01 Oct 2014 00:09:17 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=601#comment-332942</guid>

					<description><![CDATA[Great Post!   How would I change the cursor if I don&#039;t have a figure open, e.g. I want to show an hourglass during a slow function called from the command line.]]></description>
			<content:encoded><![CDATA[<p>Great Post!   How would I change the cursor if I don&#8217;t have a figure open, e.g. I want to show an hourglass during a slow function called from the command line.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
