필터 지우기
필터 지우기

How can I create a nested figure/my own component?

조회 수: 2 (최근 30일)
Lockywolf
Lockywolf 2012년 9월 11일
I need to create my own simple compound GUI control, but I do not want to dig into AciveX.
The thing is - I need to define a "component" consisting of 1 axis and 3 textfields, which must always go together.
So that afterwards I could add an arbitrary number of this "controls" to a figure.
Maybe I could somehow load an already created .fig file on an existing one programmatically?
  댓글 수: 1
Jan
Jan 2012년 9월 11일
What exactly is "1 axis"? And what are "textfields"?

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

답변 (3개)

Sean de Wolski
Sean de Wolski 2012년 9월 11일
I would recommend creating a class that is this combination of things. It could then have properties and methods like any other HG object but be your own to set up how you wish.

Jan
Jan 2012년 9월 11일
You cannot display FIG files in a figure. But you can create a subfunction, which adds the wanted elements as a group. See e.g. "edit btngroup".

per isakson
per isakson 2012년 9월 11일
편집: per isakson 2012년 9월 11일
Do you think of something like megawidgets? E.g. A New Megawidget Library, Python megawidgets. I don't think anything like megawidgets is avaiable in Matlab. It's not obvious to me how to implement it, but it would be useful.

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by