Adding a title to uiimage

2 次查看(过去 30 天)
nathan blanc
nathan blanc 2021-2-8
I am working with matlab app designer, matlab 2020b
essentially I want to have several dragable objects that look like pipe sections, connect and reconnect them, and change their sizes. each section should have a label.
So far I have worked with several UIbutton objects, dragging them around. However, I encountered two problems that i couldnt solve.
1. UIbuttons have these annoying borders that cannot be cancelled, and
2. the pictures cannot be streched properly according to my needs.the attached picture demonstrates this nicely- at the bottom you can see a UIbutton. when you try to strech it the picture behaves in a very annoying fashion. at the top tou have a UIimage, that streches correctly when you change its dimensions.
so i decided to use UIimages instead. my problem now is how to insert the label properly. images don't seem to have any option for adding a label or a title.
would be thankful for any assistance.
  5 个评论
nathan blanc
nathan blanc 2021-2-8
thank you again Mario. the site you linked to doesn't containt a lot of information. it shows how to create your own button programticaly but not how to create a custom component different from a button. would be thankful for any additional information.
Nathan

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by