Easily label pushbuttons with (rotated, vertical, or multi-line) text.
2,6K téléchargements
Mise à jour 12 avr. 2020

Afficher la licence

buttonIcon = createButtonLabel(string,PVs,figOpt)
Have you ever been frustrated by an inability to label a vertically oriented pushbutton or uicontrol with a string? This function is for you!

All valid Parameter-Value pairs, INCLUDING TEXT ROTATION, are supported. Note that this function requires the Image Processing Toolbox, and that it triggers the creation of a temporary figure, which will be momentarily visible during button-label creation.

Citation pour cette source

Brett Shoelson (2024). createButtonLabel(string,varargin) (, MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2014b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
En savoir plus sur Migrate GUIDE Apps dans Help Center et MATLAB Answers

A inspiré : Embed Text and Graphics in an Image

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version

Fixed error due to changes in the way variables are shared in subfunctions.

I have verified readiness for R2014b, and have removed an inadvertent dependence on the Statistics Toolbox.

Now facilitates easy generation of pushbuttons with multiple lines of text. (Thanks to Dave Forstot for the suggestion.)

Now easily facilitates creating pushbuttons with multi-line text. (Thanks to Dave Forstot for the suggestion.)