TreeView inside a ListView

조회 수: 4 (최근 30일)
Karthikeyan S
Karthikeyan S 2019년 12월 23일
댓글: Xiaoning.Wang 2020년 12월 30일
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.
  댓글 수: 1
Xiaoning.Wang
Xiaoning.Wang 2020년 12월 30일
I want to use the treeview, but I don't the Treeview control in GUI, how to use the TreeView.
I learn some information use it by mscomctl.ocx (AcitveX).
but I don't know to use the Acitve X
could you expalin your the treeview? Thank you.

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2019년 12월 24일
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.
  댓글 수: 2
Karthikeyan S
Karthikeyan S 2019년 12월 24일
Gtk is not part of MATLAB, but I want a Treeview like to that.
Walter Roberson
Walter Roberson 2019년 12월 24일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by