How to pass the handle of uitree or jtree among two GUIs

9 views (last 30 days)
Hello, guys
Has anybody ever tried that use named B gui to control the uitree or jtree in other gui named A?
The following codes are that I built a tree in GUI A, but I can't find the uitree handle in GUI B. Could anyone help me, please?
Thanks in advance!
Keming
% code in GUI A
handles.math=uitreenode('v0','Lecture','<html><b>Lecture</html>',[],false); handles.math.add(uitreenode('v0','Math1','Further Math',[],true)); handles.math.add(uitreenode('v0','Math2','Engineering Math',[],true));
[handles.math_tree, math_container]=uitree('v0','Root',handles.math,'Position',[-1,0,187,234]);
% code in GUI B
h=findobj('Tag','A');
handles=guihandles(h);
math=handles.math;
handle.math_tree.expand(math);
guidata(h);

Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!