Photo and Text with Dropdown Menu

조회 수: 2 (최근 30일)
Kaitlyn Roling
Kaitlyn Roling 2019년 4월 1일
댓글: Kevin Phung 2019년 4월 1일
Hi all-
I created a drop down box with several options. Above it, I would like to put a line of text that says "Please choose an option from below." Lastly, I am hoping to put an image in this same figure.
Is that possible? I have been doing a lot of research to try and make it happen, but I have come up short.
Any assistance would be great!

답변 (1개)

Kevin Phung
Kevin Phung 2019년 4월 1일
use uicontrol to create a text box:
and imshow to create your image:
example:
txt= uicontrol('Style','text','String','Please choose an option from below.',...
'Position', [x y width height])
  댓글 수: 2
Walter Roberson
Walter Roberson 2019년 4월 1일
Another approach is that you can use a uipanel() with the 'title' parameter, probably together with the FontSize and TitlePosition parameters.
Kevin Phung
Kevin Phung 2019년 4월 1일
^ yes, that would be much cleaner!

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by