Be the first to rate this file! 111 downloads (last 30 days) File Size: 3.3 KB File ID: #15018

createButtonLabel

by Brett Shoelson

 

16 May 2007 (Updated 22 Jun 2009)

Code covered by BSD License  

Easily label pushbuttons with (rotated, vertical, or multi-line) text.

Download Now | Watch this File

File Information
Description

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.

Required Products Image Processing Toolbox
MATLAB release MATLAB 7.4 (R2007a)
Zip File Content  
Other Files createButtonLabel.m,
license.txt
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
22 Jun 2009

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

22 Jun 2009

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

Tag Activity for this File
Tag Applied By Date/Time
gui tools Brett Shoelson 22 Oct 2008 09:12:57
example Brett Shoelson 22 Oct 2008 09:12:57
create button label rotate text Brett Shoelson 22 Oct 2008 09:12:57
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com