uibutton: GUI pushbuttons with better labels

版本 1.3.0.0 (3.1 KB) 作者: Douglas Schwarz
Creates pushbutton uicontrol labeled with TeX or LaTeX strings.
11.2K 次下载
更新时间 2010/11/5

查看许可证

Have you ever wanted to create a pushbutton uicontrol containing a Greek letter, some other mathematical expression or even just a multi-line label? This function will do it for you. It is very easy to use as it accepts all the same arguments as uicontrol with the addition of the Interpreter property which you can set to 'tex' or 'latex' and the Rotation property to set the angle of rotation of the text. Also, you can pass in a cell array of strings for the String property to get a multi-line label. For example,

uibutton('String','Set \beta','Interpreter','tex')

Can also create something that looks like a text uicontrol.

引用格式

Douglas Schwarz (2024). uibutton: GUI pushbuttons with better labels (https://www.mathworks.com/matlabcentral/fileexchange/10743-uibutton-gui-pushbuttons-with-better-labels), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2009a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Migrate GUIDE Apps 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.3.0.0

Workaround for bug in getframe in case parent figure is on a second screen.

1.2.0.0

Fixed bug introduced in previous update.

1.1.0.0

Added ability to set the text rotation angle.

1.0.0.0

Now make background pixels transparent thereby making button look more like a normal button.