Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Has anyone written a cascading popup-style uicontrol?

조회 수: 1 (최근 30일)
David Goldsmith
David Goldsmith 2012년 10월 23일
마감: MATLAB Answer Bot 2021년 8월 20일
e.g., similar to what is possible w/ uicontext menus, only as a uicontrol so it can "live" in a figure or panel? (As near as I can tell, given present Matlab GUI object options, one would have to implement this, descending level by level, in the callbacks of popup-style uicontrols--I'm just wondering if anyone has already done this in a general way so that all one has to do is specify the lists to display at the various levels and the rest is done for you.) Thanks!

답변 (1개)

Walter Roberson
Walter Roberson 2012년 10월 23일
The UIContextMenu property (of most graphic objects) allows you to associate a right-click activated uicontextmenu object with the graphics object.
  댓글 수: 2
David Goldsmith
David Goldsmith 2012년 10월 23일
편집: David Goldsmith 2012년 10월 23일
Yes, I'm well aware of that--I use it in another app--but that's not what I want: I don't want the user to have to right-click on anything, I want a "regular" popup uicontrol, but when you hover over or select one of its choices, another popup opens up with another list of sub-choices, etc. Basically, I want to be able to nest popup uicontrols within one another. (Note: I've already submitted an "enhancement request" for this; I'm just wondering/hoping someone has already implemented it using extant resources.)
Walter Roberson
Walter Roberson 2012년 10월 23일
That sounds a bit familiar; I think someone else asked for much the same thing about a year-ish ago.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by