Path: news.mathworks.com!not-for-mail
From: "Vihang Patil" <vihang_patil@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Enlarging size of toolbars
Date: Fri, 15 Feb 2008 08:16:04 +0000 (UTC)
Organization: Konem Solutions
Lines: 37
Message-ID: <fp3ho4$g6n$1@fred.mathworks.com>
References: <31128702.1203057471171.JavaMail.jakarta@nitrogen.mathforum.org>
Reply-To: "Vihang Patil" <vihang_patil@yahoo.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1203063364 16599 172.30.248.38 (15 Feb 2008 08:16:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 15 Feb 2008 08:16:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 842609
Xref: news.mathworks.com comp.soft-sys.matlab:451577


Andrea Tagliasacchi <public.andrea.tagliasacchi@gmail.com> 
wrote in message 
<31128702.1203057471171.JavaMail.jakarta@nitrogen.mathforum
.org>...
> Hello there, I am trying to build a complete GUI system
> in MATLAB. One of the few issues remaining right now is 
the fact that I cannot change the size of a toolbar. 
> 
> For example:
> set( gcf, 'ToolBar', 'none' ); % remove standard figure 
toolbar
> h_toolbar = uitoolbar( gcf ); % create a new one
> icon = imread('./icons/X.bmp');
> uitoggletool
(h_toolbar,'CData',icon,'TooltipString','Show 
Axes','ClickedCallback', 
@show_axes_callback, 'state', 'off');
> 
> This series of commands remove the standard toolbar and 
replace it with my own. X.bmp contains a 16x16 pixel 
image. If I feed a larger image for the button, the button 
does not scale!! the size of the button remains 16x16.
> 
> Is there a way of enlarging their size?
> They are really, really small for anything 
sophisticated. 
> 
> Thanks, Andrea


This probably might be of interest to you

http://www.mathworks.com/matlabcentral/fileexchange/loadFil
e.do?objectId=2384&objectType=file

HTH
Vihang