Path: news.mathworks.com!newsfeed-00.mathworks.com!newscon02.news.prodigy.net!prodigy.net!news.glorb.com!news.aset.psu.edu!support1.mathforum.org!not-for-mail
From: Andrea Tagliasacchi <public.andrea.tagliasacchi@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Enlarging size of toolbars
Date: Fri, 15 Feb 2008 01:36:53 EST
Organization: The Math Forum
Lines: 15
Message-ID: <31128702.1203057471171.JavaMail.jakarta@nitrogen.mathforum.org>
NNTP-Posting-Host: nitrogen.mathforum.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: support1.mathforum.org 1203057471 27376 144.118.30.135 (15 Feb 2008 06:37:51 GMT)
X-Complaints-To: news@support1.mathforum.org
NNTP-Posting-Date: Fri, 15 Feb 2008 06:37:51 +0000 (UTC)
Xref: news.mathworks.com comp.soft-sys.matlab:451569


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