필터 지우기
필터 지우기

Need to enable Editing value when selected from Tab tree???

조회 수: 11 (최근 30일)
naveen kumar s
naveen kumar s 2021년 8월 26일
댓글: naveen kumar s 2021년 8월 27일
I have been trying to create GUI in app designer and i am new to it.
I have plotted with three variables = 3 curves in single plot.
this name for 3 nodes in tree component
Node 1 = P1
Node 2 = P2
Node 3 = P3
so now i wanted to calculate value of Y for X on only P1 curve when it is selected.
When Nothing node selected the edit field value should be disable, only when selected node it should enable.
How to do it please help me

답변 (1개)

Thomas Fournier
Thomas Fournier 2021년 8월 26일
Not exactly sure what you want to do but here are a few thing that can be usefull:
1, create callbacks: a piece of code that is executed when something changes in your tree component. In design view right clic on your tree, callback, add selection change function callback.
2. To know what node is selected:
app.Tree.SelectedNodes.Text
You can access other properties of your tree the same way.
3. To disable some compenent:
app.element.Editable='off'

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by