<?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: UISplitPane	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/uisplitpane/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/uisplitpane?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=uisplitpane</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Tue, 29 Sep 2015 01:18:17 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.3</generator>
	<item>
		<title>
		By: Mollie		</title>
		<link>https://undocumentedmatlab.com/articles/uisplitpane#comment-357877</link>

		<dc:creator><![CDATA[Mollie]]></dc:creator>
		<pubDate>Tue, 29 Sep 2015 01:18:17 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=119#comment-357877</guid>

					<description><![CDATA[Hi Yair,

I recently updated to Matlab 2015a and thus updated my UISplitPane method in my program.  I was using your previous UISplitPane method on Matlab 2012a and referenced a property called &#039;offsetPosition,&#039; it was stored within plotDivider; is there a reason why this is not written into the Matlab 2015a version?  

Also, in the old UISplitPane method, there was a line &quot;G.Z.updateSubPaneSIzes = @updateSubPaneSizes&quot; so that I could call updateSubPaneSizes elsewhere in the program, do you have a suggestion for how I could call updateSubPaneSizes outside of UISplitPane?]]></description>
			<content:encoded><![CDATA[<p>Hi Yair,</p>
<p>I recently updated to Matlab 2015a and thus updated my UISplitPane method in my program.  I was using your previous UISplitPane method on Matlab 2012a and referenced a property called &#8216;offsetPosition,&#8217; it was stored within plotDivider; is there a reason why this is not written into the Matlab 2015a version?  </p>
<p>Also, in the old UISplitPane method, there was a line &#8220;G.Z.updateSubPaneSIzes = @updateSubPaneSizes&#8221; so that I could call updateSubPaneSizes elsewhere in the program, do you have a suggestion for how I could call updateSubPaneSizes outside of UISplitPane?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sebas		</title>
		<link>https://undocumentedmatlab.com/articles/uisplitpane#comment-334083</link>

		<dc:creator><![CDATA[Sebas]]></dc:creator>
		<pubDate>Tue, 14 Oct 2014 08:16:59 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=119#comment-334083</guid>

					<description><![CDATA[Ciao Yair!
It seems that the suggestions to remove all those Java exception (even with the conditions update) do not work with Matlab 2013b onward. It is a shame as the power of what you are sharing is amazing! Is there any chance to provide us some working code so we can take advantage of your very great job? ;-)
Many thanks!

Seb]]></description>
			<content:encoded><![CDATA[<p>Ciao Yair!<br />
It seems that the suggestions to remove all those Java exception (even with the conditions update) do not work with Matlab 2013b onward. It is a shame as the power of what you are sharing is amazing! Is there any chance to provide us some working code so we can take advantage of your very great job? 😉<br />
Many thanks!</p>
<p>Seb</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ben		</title>
		<link>https://undocumentedmatlab.com/articles/uisplitpane#comment-307522</link>

		<dc:creator><![CDATA[Ben]]></dc:creator>
		<pubDate>Fri, 03 Jan 2014 18:58:07 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=119#comment-307522</guid>

					<description><![CDATA[I know this is an old topic but I had a question/problem I hope someone can help me with.

Using the example from the file exchange I noticed that the mouse pointer no longer updates.  Example, select the &quot;zoom in&quot; button, mouse over an axes and the pointer does not change. However, it still functions correctly. Is there a way to fix this so the Pan/Zoom/Etc. positioning controls retain the correct mouse pointer.]]></description>
			<content:encoded><![CDATA[<p>I know this is an old topic but I had a question/problem I hope someone can help me with.</p>
<p>Using the example from the file exchange I noticed that the mouse pointer no longer updates.  Example, select the &#8220;zoom in&#8221; button, mouse over an axes and the pointer does not change. However, it still functions correctly. Is there a way to fix this so the Pan/Zoom/Etc. positioning controls retain the correct mouse pointer.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Rich-contents log panel &#124; Undocumented Matlab		</title>
		<link>https://undocumentedmatlab.com/articles/uisplitpane#comment-266523</link>

		<dc:creator><![CDATA[Rich-contents log panel &#124; Undocumented Matlab]]></dc:creator>
		<pubDate>Wed, 18 Sep 2013 14:01:49 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=119#comment-266523</guid>

					<description><![CDATA[[...] Draggable (resizable) panel borders (note that this feature does not work in the new HG2 &#8211; I hope it will be fixed by the time that HG2 is released) [...]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] Draggable (resizable) panel borders (note that this feature does not work in the new HG2 &#8211; I hope it will be fixed by the time that HG2 is released) [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: uiinspect &#124; Undocumented Matlab		</title>
		<link>https://undocumentedmatlab.com/articles/uisplitpane#comment-146070</link>

		<dc:creator><![CDATA[uiinspect &#124; Undocumented Matlab]]></dc:creator>
		<pubDate>Thu, 24 Jan 2013 14:07:32 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=119#comment-146070</guid>

					<description><![CDATA[[...] In a general case where we might wish to embed Matlab graphs in one of the side panels, we would need to employ a more sophisticated solution (see my UISplitPane utility). [...]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] In a general case where we might wish to embed Matlab graphs in one of the side panels, we would need to employ a more sophisticated solution (see my UISplitPane utility). [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Alexander		</title>
		<link>https://undocumentedmatlab.com/articles/uisplitpane#comment-84537</link>

		<dc:creator><![CDATA[Alexander]]></dc:creator>
		<pubDate>Fri, 04 May 2012 09:56:27 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=119#comment-84537</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/uisplitpane#comment-658&quot;&gt;Anonymous&lt;/a&gt;.

Addendum:

After turning off &lt;code&gt;com.mathworks.widgets.desk.DTDocumentBar.wantsToHandle&lt;/code&gt;, also

&lt;code&gt;com.mathworks.widgets.tooltip.ToolTipAndComponentAWTListener.mouseInTipComponent&lt;/code&gt;
throws an error. But this is not part of the event_listener list.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/uisplitpane#comment-658">Anonymous</a>.</p>
<p>Addendum:</p>
<p>After turning off <code>com.mathworks.widgets.desk.DTDocumentBar.wantsToHandle</code>, also</p>
<p><code>com.mathworks.widgets.tooltip.ToolTipAndComponentAWTListener.mouseInTipComponent</code><br />
throws an error. But this is not part of the event_listener list.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Alexander		</title>
		<link>https://undocumentedmatlab.com/articles/uisplitpane#comment-84523</link>

		<dc:creator><![CDATA[Alexander]]></dc:creator>
		<pubDate>Fri, 04 May 2012 08:09:25 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=119#comment-84523</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/uisplitpane#comment-658&quot;&gt;Anonymous&lt;/a&gt;.

Dear Yair, dear Anonymus,

while trying to implement my own code to use a systray icon (Yair, your &lt;i&gt;&lt;b&gt;systray&lt;/b&gt;&lt;/i&gt; function is great but throws many warnings about &quot;depreciated use of set/get&quot; in more recent Matlab versions), I stumbled over another error message using the java code. 
Though above code resolves the issue in Matlab 2010b, in 2011b, the issued event is &lt;code&gt;com.mathworks.widgets.desk.DTDocumentBar.wantsToHandle&lt;/code&gt;

So you should add this to your list.

By the way: Which events are triggered by these four (to be removed) event_listeners and why could they easily be removed without changing other stuff?

The code I used is basically:
&lt;pre lang=&quot;matlab&quot;&gt; 
systray_icon = rand(16,16,3);
trayimage = im2java(systray_icon);
handles.java.TrayIcon = java.awt.TrayIcon(trayimage);
java.awt.SystemTray.getSystemTray.add(handles.java.TrayIcon);
&lt;/pre&gt;

Thanks for your great work,

Alexander]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/uisplitpane#comment-658">Anonymous</a>.</p>
<p>Dear Yair, dear Anonymus,</p>
<p>while trying to implement my own code to use a systray icon (Yair, your <i><b>systray</b></i> function is great but throws many warnings about &#8220;depreciated use of set/get&#8221; in more recent Matlab versions), I stumbled over another error message using the java code.<br />
Though above code resolves the issue in Matlab 2010b, in 2011b, the issued event is <code>com.mathworks.widgets.desk.DTDocumentBar.wantsToHandle</code></p>
<p>So you should add this to your list.</p>
<p>By the way: Which events are triggered by these four (to be removed) event_listeners and why could they easily be removed without changing other stuff?</p>
<p>The code I used is basically:</p>
<pre lang="matlab"> 
systray_icon = rand(16,16,3);
trayimage = im2java(systray_icon);
handles.java.TrayIcon = java.awt.TrayIcon(trayimage);
java.awt.SystemTray.getSystemTray.add(handles.java.TrayIcon);
</pre>
<p>Thanks for your great work,</p>
<p>Alexander</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/uisplitpane#comment-24206</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Tue, 30 Nov 2010 23:12:39 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=119#comment-24206</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/uisplitpane#comment-23490&quot;&gt;Yogesh&lt;/a&gt;.

@Yogesh - You can do this anywhere in your Matlab session, or at the beginning of the function. Note that the relevant condition was modified by Anonymous (see the comments above) to:
&lt;pre lang=&quot;matlab&quot;&gt;
str.indexOf(&#039;com.mathworks.mwswing.desk.DTSelectionManager&#039;) &gt;= 0 &#124;&#124; ...
str.indexOf(&#039;javax.swing.plaf.basic.BasicLookAndFeel&#039;) &gt;= 0 &#124;&#124; ...
str.indexOf(&#039;com.mathworks.widgets.text.mcode.MLintDecorator&#039;) &gt;= 0
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/uisplitpane#comment-23490">Yogesh</a>.</p>
<p>@Yogesh &#8211; You can do this anywhere in your Matlab session, or at the beginning of the function. Note that the relevant condition was modified by Anonymous (see the comments above) to:</p>
<pre lang="matlab">
str.indexOf('com.mathworks.mwswing.desk.DTSelectionManager') >= 0 || ...
str.indexOf('javax.swing.plaf.basic.BasicLookAndFeel') >= 0 || ...
str.indexOf('com.mathworks.widgets.text.mcode.MLintDecorator') >= 0
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yogesh		</title>
		<link>https://undocumentedmatlab.com/articles/uisplitpane#comment-23490</link>

		<dc:creator><![CDATA[Yogesh]]></dc:creator>
		<pubDate>Tue, 23 Nov 2010 20:18:11 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=119#comment-23490</guid>

					<description><![CDATA[Yair/Anonymous,

Where do I insert the following lines to remove the bug with R2008+?

&lt;pre lang=&quot;matlab&quot;&gt;
t=java.awt.Toolkit.getDefaultToolkit()
ev=t.getAWTEventListeners()
for i=1:length(ev)
    str=ev(i).getListener().getClass.toString
    if str.indexOf(&#039;com.mathworks.mwswing.desk.DTSelectionManager&#039;)&gt;=0 &#124;&#124; ...
       str.indexOf(&#039;javax.swing.plaf.basic.BasicLookAndFeel&#039;)&gt;=0
        t.removeAWTEventListener(ev(i))
    end
end
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>Yair/Anonymous,</p>
<p>Where do I insert the following lines to remove the bug with R2008+?</p>
<pre lang="matlab">
t=java.awt.Toolkit.getDefaultToolkit()
ev=t.getAWTEventListeners()
for i=1:length(ev)
    str=ev(i).getListener().getClass.toString
    if str.indexOf('com.mathworks.mwswing.desk.DTSelectionManager')>=0 || ...
       str.indexOf('javax.swing.plaf.basic.BasicLookAndFeel')>=0
        t.removeAWTEventListener(ev(i))
    end
end
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Zach		</title>
		<link>https://undocumentedmatlab.com/articles/uisplitpane#comment-9723</link>

		<dc:creator><![CDATA[Zach]]></dc:creator>
		<pubDate>Wed, 05 May 2010 15:53:30 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=119#comment-9723</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/uisplitpane#comment-8213&quot;&gt;Zach&lt;/a&gt;.

Update, here&#039;s an ugly hack I&#039;ve inserted into &lt;i&gt;&lt;b&gt;uisplitpane&lt;/b&gt;&lt;/i&gt; so that a &lt;i&gt;&lt;b&gt;uitree&lt;/b&gt;&lt;/i&gt; correctly resizes if it&#039;s in one of the panes.

In the updateSubPaneSizes, line 800, I&#039;ve inserted:

&lt;pre lang=&quot;matlab&quot;&gt;
%Z
hParent = get(hDivider,&#039;ContainerParentHandle&#039;);
tree_handle = findobj(hParent,&#039;UserData&#039;,&#039;com.mathworks.hg.peer.UITreePeer&#039;);
if(~isempty(tree_handle))
   pixelPos = getPixelPos(hDivider);
   set(tree_handle,&#039;Units&#039;,&#039;pixels&#039;)
   current_tree_pos = get(tree_handle,&#039;Position&#039;);
   set(tree_handle,&#039;Position&#039;,[current_tree_pos(1) current_tree_pos(2) pixelPos(1)-2 pixelPos(4)]);
   drawnow;
end
&lt;/pre&gt;

Seems to work well enough.

Thanks,
Zach]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/uisplitpane#comment-8213">Zach</a>.</p>
<p>Update, here&#8217;s an ugly hack I&#8217;ve inserted into <i><b>uisplitpane</b></i> so that a <i><b>uitree</b></i> correctly resizes if it&#8217;s in one of the panes.</p>
<p>In the updateSubPaneSizes, line 800, I&#8217;ve inserted:</p>
<pre lang="matlab">
%Z
hParent = get(hDivider,'ContainerParentHandle');
tree_handle = findobj(hParent,'UserData','com.mathworks.hg.peer.UITreePeer');
if(~isempty(tree_handle))
   pixelPos = getPixelPos(hDivider);
   set(tree_handle,'Units','pixels')
   current_tree_pos = get(tree_handle,'Position');
   set(tree_handle,'Position',[current_tree_pos(1) current_tree_pos(2) pixelPos(1)-2 pixelPos(4)]);
   drawnow;
end
</pre>
<p>Seems to work well enough.</p>
<p>Thanks,<br />
Zach</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
