<?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: Customizing uitree	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/customizing-uitree/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/customizing-uitree?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=customizing-uitree</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Wed, 29 Jul 2020 09:22:05 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>
		By: geetha		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-uitree#comment-508785</link>

		<dc:creator><![CDATA[geetha]]></dc:creator>
		<pubDate>Wed, 29 Jul 2020 09:22:05 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1808#comment-508785</guid>

					<description><![CDATA[Hi am uitree and some line am getting this error
&lt;pre&gt;
error in
@(tree,evd)evalin(&#039;base&#039;,sprintf([&#039;ldp_temp_blockhandle=%.20f;&#039;,&#039;set(ldp_temp_blockhandle,&#039;&#039;UserData&#039;&#039;,setfield(get(ldp_temp_blockhandle,&#039;&#039;UserData&#039;&#039;),&#039;&#039;action&#039;&#039;,0));&#039;,&#039;ldp_temp_blockhandle
= getfield(get(ldp_temp_blockhandle,&#039;&#039;UserData&#039;&#039;),&#039;&#039;system&#039;&#039;);&#039;,&#039;eval(get_param(ldp_temp_blockhandle,&#039;&#039;OpenFcn&#039;&#039;));&#039;],get(tree.Root,&#039;UserData&#039;)))

Error in hgfeval (line 63)
        feval(fcn{1},varargin{:},fcn{2:end});

Error in uitree_deprecated&#062;nodeSelected (line 140)
hgfeval(cbk, tree, evd);
&lt;/pre&gt;
please help in anybody]]></description>
			<content:encoded><![CDATA[<p>Hi am uitree and some line am getting this error</p>
<pre>
error in
@(tree,evd)evalin('base',sprintf(['ldp_temp_blockhandle=%.20f;','set(ldp_temp_blockhandle,''UserData'',setfield(get(ldp_temp_blockhandle,''UserData''),''action'',0));','ldp_temp_blockhandle
= getfield(get(ldp_temp_blockhandle,''UserData''),''system'');','eval(get_param(ldp_temp_blockhandle,''OpenFcn''));'],get(tree.Root,'UserData')))

Error in hgfeval (line 63)
        feval(fcn{1},varargin{:},fcn{2:end});

Error in uitree_deprecated&gt;nodeSelected (line 140)
hgfeval(cbk, tree, evd);
</pre>
<p>please help in anybody</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ss		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-uitree#comment-407722</link>

		<dc:creator><![CDATA[ss]]></dc:creator>
		<pubDate>Thu, 01 Jun 2017 05:57:11 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1808#comment-407722</guid>

					<description><![CDATA[Thanks Yair Altman

   how  to  rename or change icon to a uitreenode , I try jtree.setEditable(true), but the name can not be modified  

   ss]]></description>
			<content:encoded><![CDATA[<p>Thanks Yair Altman</p>
<p>   how  to  rename or change icon to a uitreenode , I try jtree.setEditable(true), but the name can not be modified  </p>
<p>   ss</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ss		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-uitree#comment-407721</link>

		<dc:creator><![CDATA[ss]]></dc:creator>
		<pubDate>Thu, 01 Jun 2017 05:55:16 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1808#comment-407721</guid>

					<description><![CDATA[Thanks Yair Altman

   how  to  rename or change icon to a uitreenode , I try set(jtree.setEditable(true)), but the name can not be modified  

   ss]]></description>
			<content:encoded><![CDATA[<p>Thanks Yair Altman</p>
<p>   how  to  rename or change icon to a uitreenode , I try set(jtree.setEditable(true)), but the name can not be modified  </p>
<p>   ss</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Paul		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-uitree#comment-396820</link>

		<dc:creator><![CDATA[Paul]]></dc:creator>
		<pubDate>Mon, 19 Dec 2016 12:04:20 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1808#comment-396820</guid>

					<description><![CDATA[Hi everybody,

I am using uitree in a MATLAB-GUI, too. Can you give me an explanation, how it is possible to modify the content of &quot;handles&quot; in the ExpandFcn of uitree. I always have the problem, that the changings are visible when I am in the function call - afterwards they are deleted. Is there a possibility to make changes outside the original GUIDE-Callbacks?

Thank you &#038; best regards
Paul]]></description>
			<content:encoded><![CDATA[<p>Hi everybody,</p>
<p>I am using uitree in a MATLAB-GUI, too. Can you give me an explanation, how it is possible to modify the content of &#8220;handles&#8221; in the ExpandFcn of uitree. I always have the problem, that the changings are visible when I am in the function call &#8211; afterwards they are deleted. Is there a possibility to make changes outside the original GUIDE-Callbacks?</p>
<p>Thank you &amp; best regards<br />
Paul</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sebastian		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-uitree#comment-396217</link>

		<dc:creator><![CDATA[Sebastian]]></dc:creator>
		<pubDate>Thu, 15 Dec 2016 07:29:11 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1808#comment-396217</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/customizing-uitree#comment-396133&quot;&gt;Sebastian&lt;/a&gt;.

@Yair: Thank you very much for your answer!
In my MATLAB-GUI I have a pushbutton for opening a new file. In the Callback of this pushbutton I am using the following code:

&lt;pre lang=&quot;matlab&quot;&gt;
% --- Executes on button press in open_pb.
function open_pb_Callback(hObject, eventdata, handles)
% hObject    handle to open_pb (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
[filename,pathname]=uigetfile(&#039;*.mat&#039;, &#039;File zum Laden auswählen&#039;);
a=[pathname,filename];
data = load(a);
name = fieldnames(data);

handles.data = cell(2,1);
handles.data{1} = data;

handles.root = uitreenode(&#039;v0&#039;, filename, filename, [], false);
handles.tree = uitree(&#039;v0&#039;, hObject,&#039;Root&#039;, handles.root,&#039;ExpandFcn&#039;, @(obj, ev)myExpfcn4(obj, ev, hObject, handles));

% Update handles structure
guidata(hObject, handles);
&lt;/pre&gt;

When I execute this pushbutton, I get the following error message:

&lt;pre lang=&quot;text&quot;&gt;
Error using uitree_deprecated
Unrecognized parameter.

Error in uitree (line 102)
	[tree, container] = uitree_deprecated(varargin{2:end});

Error in tree_inspector&gt;open_pb_Callback (line 385)
handles.tree = uitree(&#039;v0&#039;, hObject,&#039;Root&#039;, handles.abc,&#039;ExpandFcn&#039;, @(obj,ev)myExpfcn4(obj, ev, hObject, handles));

Error in gui_mainfcn (line 95)
        feval(varargin{:});

Error in tree_inspector (line 42)
    gui_mainfcn(gui_State, varargin{:});

Error in
matlab.graphics.internal.figfile.FigFile/read&gt;@(hObject,eventdata)tree_inspector(&#039;open_pb_Callback&#039;,hObject,eventdata,guidata(hObject)) 
Error while evaluating UIControl Callback
&lt;/pre&gt;

Have you got an idea what is my principal problem?

Thank you very much for your response.

Best regards,
Sebastian]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/customizing-uitree#comment-396133">Sebastian</a>.</p>
<p>@Yair: Thank you very much for your answer!<br />
In my MATLAB-GUI I have a pushbutton for opening a new file. In the Callback of this pushbutton I am using the following code:</p>
<pre lang="matlab">
% --- Executes on button press in open_pb.
function open_pb_Callback(hObject, eventdata, handles)
% hObject    handle to open_pb (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
[filename,pathname]=uigetfile('*.mat', 'File zum Laden auswählen');
a=[pathname,filename];
data = load(a);
name = fieldnames(data);

handles.data = cell(2,1);
handles.data{1} = data;

handles.root = uitreenode('v0', filename, filename, [], false);
handles.tree = uitree('v0', hObject,'Root', handles.root,'ExpandFcn', @(obj, ev)myExpfcn4(obj, ev, hObject, handles));

% Update handles structure
guidata(hObject, handles);
</pre>
<p>When I execute this pushbutton, I get the following error message:</p>
<pre lang="text">
Error using uitree_deprecated
Unrecognized parameter.

Error in uitree (line 102)
	[tree, container] = uitree_deprecated(varargin{2:end});

Error in tree_inspector>open_pb_Callback (line 385)
handles.tree = uitree('v0', hObject,'Root', handles.abc,'ExpandFcn', @(obj,ev)myExpfcn4(obj, ev, hObject, handles));

Error in gui_mainfcn (line 95)
        feval(varargin{:});

Error in tree_inspector (line 42)
    gui_mainfcn(gui_State, varargin{:});

Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)tree_inspector('open_pb_Callback',hObject,eventdata,guidata(hObject)) 
Error while evaluating UIControl Callback
</pre>
<p>Have you got an idea what is my principal problem?</p>
<p>Thank you very much for your response.</p>
<p>Best regards,<br />
Sebastian</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-uitree#comment-396164</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Wed, 14 Dec 2016 20:33:52 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1808#comment-396164</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/customizing-uitree#comment-396133&quot;&gt;Sebastian&lt;/a&gt;.

@Sebastian - did you try to simple create a new &lt;code&gt;uitreenode&lt;/code&gt; for the new file and then set the tree&#039;s &lt;b&gt;Root&lt;/b&gt; property to this new node?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/customizing-uitree#comment-396133">Sebastian</a>.</p>
<p>@Sebastian &#8211; did you try to simple create a new <code>uitreenode</code> for the new file and then set the tree&#8217;s <b>Root</b> property to this new node?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sebastian		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-uitree#comment-396133</link>

		<dc:creator><![CDATA[Sebastian]]></dc:creator>
		<pubDate>Wed, 14 Dec 2016 13:17:06 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1808#comment-396133</guid>

					<description><![CDATA[Hi Yair,

I am using the uitree inside a MATLAB GUI. Basically I want to browse in .mat-files (simulation results). Until now I am able generate a uitree, but I am not able to delete it and load another .mat-file. Can you help me how it is possible to use uitrees for different .mat-files? 

Thank you very much,
Sebastian

My code example for the generation of a uitree: 

&lt;pre lang=&quot;matlab&quot;&gt;
import javax.swing.*;
warning(&#039;off&#039;, &#039;MATLAB:hg:JavaSetHGProperty&#039;);

[filename,pathname]=uigetfile(&#039;*.mat&#039;, &#039;File zum Laden auswählen&#039;);
a=[pathname,filename];
data = load(a);
name = fieldnames(data);

handles.data = cell(2,1);
handles.data{1} = data;

handles.root = uitreenode(&#039;v0&#039;, filename, filename, [], false);
handles.tree = uitree(&#039;v0&#039;, hObject,&#039;Root&#039;, handles.root,&#039;ExpandFcn&#039;, @(obj, ev)myExpfcn4(obj, ev, hObject, handles));
set(handles.tree, &#039;Units&#039;, &#039;normalized&#039;, &#039;position&#039;, [0 0 0.25 1]);
set(handles.tree, &#039;NodeWillExpandCallback&#039;, @(obj, ev) nodeWillExpand_cb4(obj, ev, hObject, handles));
set(handles.tree, &#039;NodeSelectedCallback&#039;, @(obj, ev)nodeSelected_cb4(obj, ev, hObject, handles));

handles.t = handles.tree.Tree;
set(handles.t, &#039;MousePressedCallback&#039;, @mouse_cb);

warning(&#039;on&#039;, &#039;MATLAB:hg:JavaSetHGProperty&#039;);
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>Hi Yair,</p>
<p>I am using the uitree inside a MATLAB GUI. Basically I want to browse in .mat-files (simulation results). Until now I am able generate a uitree, but I am not able to delete it and load another .mat-file. Can you help me how it is possible to use uitrees for different .mat-files? </p>
<p>Thank you very much,<br />
Sebastian</p>
<p>My code example for the generation of a uitree: </p>
<pre lang="matlab">
import javax.swing.*;
warning('off', 'MATLAB:hg:JavaSetHGProperty');

[filename,pathname]=uigetfile('*.mat', 'File zum Laden auswählen');
a=[pathname,filename];
data = load(a);
name = fieldnames(data);

handles.data = cell(2,1);
handles.data{1} = data;

handles.root = uitreenode('v0', filename, filename, [], false);
handles.tree = uitree('v0', hObject,'Root', handles.root,'ExpandFcn', @(obj, ev)myExpfcn4(obj, ev, hObject, handles));
set(handles.tree, 'Units', 'normalized', 'position', [0 0 0.25 1]);
set(handles.tree, 'NodeWillExpandCallback', @(obj, ev) nodeWillExpand_cb4(obj, ev, hObject, handles));
set(handles.tree, 'NodeSelectedCallback', @(obj, ev)nodeSelected_cb4(obj, ev, hObject, handles));

handles.t = handles.tree.Tree;
set(handles.t, 'MousePressedCallback', @mouse_cb);

warning('on', 'MATLAB:hg:JavaSetHGProperty');
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: kpmandani		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-uitree#comment-331095</link>

		<dc:creator><![CDATA[kpmandani]]></dc:creator>
		<pubDate>Mon, 08 Sep 2014 17:07:38 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1808#comment-331095</guid>

					<description><![CDATA[What I am trying is similar to what we see in computers. Eg when we go inside a folder and select a file, the line below the menu bar shows the file/folder location. Can I do it the same for the above and display its output in the command window?]]></description>
			<content:encoded><![CDATA[<p>What I am trying is similar to what we see in computers. Eg when we go inside a folder and select a file, the line below the menu bar shows the file/folder location. Can I do it the same for the above and display its output in the command window?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-uitree#comment-331094</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Mon, 08 Sep 2014 16:56:53 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1808#comment-331094</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/customizing-uitree#comment-331092&quot;&gt;kpmandani&lt;/a&gt;.

I don&#039;t think there is a simple answer. If you wish me to investigate this (for a consulting fee) then send me an email.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/customizing-uitree#comment-331092">kpmandani</a>.</p>
<p>I don&#8217;t think there is a simple answer. If you wish me to investigate this (for a consulting fee) then send me an email.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: kpmandani		</title>
		<link>https://undocumentedmatlab.com/articles/customizing-uitree#comment-331092</link>

		<dc:creator><![CDATA[kpmandani]]></dc:creator>
		<pubDate>Mon, 08 Sep 2014 16:53:55 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1808#comment-331092</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/customizing-uitree#comment-331090&quot;&gt;Yair Altman&lt;/a&gt;.

I mean if I go as per your example document http://undocumentedmatlab.com/blog/customizing-uitree-nodes-2 ,  I want checkbox only for the &#039;child node&#039; and options below it and not the node where its written &#039;file A&#039; and &#039;file B&#039;. Is it possible. If so, please suggest me the code for it]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/customizing-uitree#comment-331090">Yair Altman</a>.</p>
<p>I mean if I go as per your example document <a href="http://undocumentedmatlab.com/blog/customizing-uitree-nodes-2" rel="ugc">http://undocumentedmatlab.com/blog/customizing-uitree-nodes-2</a> ,  I want checkbox only for the &#8216;child node&#8217; and options below it and not the node where its written &#8216;file A&#8217; and &#8216;file B&#8217;. Is it possible. If so, please suggest me the code for it</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
