MATLAB Answers

TreeView inside a ListView

5 views (last 30 days)
Is it possible to add a TreeView inside a ListView
Example :
treeview_draganddrop.png
like above Treeview with Listview. Please any one give a valuable suggestion.

  0 Comments

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 24 Dec 2019
This does not appear to be a MATLAB question. Gtk is not part of MATLAB.
There is the File Exchange contribution https://www.mathworks.com/matlabcentral/fileexchange/58274-treeview which could in theory be extended, but there is no corresponding listview contribution.
There is the MATLAB component uitree() but there is no corresponding list facility.
There is uicontrol('style', 'list'), but the only way to put trees inside of those is to be using "traditional" figures and make changes at the Java level.

  3 Comments

Karthikeyan S
Karthikeyan S on 24 Dec 2019
Gtk is not part of MATLAB, but I want a Treeview like to that.
Walter Roberson
Walter Roberson on 24 Dec 2019
Your options are:
  1. start from scratch and write all of the graphics facilities yourself
  2. start with a FEX contribution such as the treeview that I linked to, and modify that take on whatever further roles you need; or
  3. use "traditional" figures and invoke java tree facilities
  4. use loadlibrary() or equivalent and call into external graphics routines
To be more explicit: what you are asking for is not supported in MATLAB.
Karthikeyan S
Karthikeyan S on 24 Dec 2019
Thanks for your valuable reply.

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Tags