> One thing about spm2 that bugs me is that the top of the graphics window
> always seems to disappear above the top of the screen. Then the window is
> hard to move and the menubar is sometimes hard to see.
>
> Well I figured out the problem. It seems that when the window is first
> created it doesn't have a figure toolbar. When the window is cleared
> however the toolbar appears and the top of the window moves up too high.
> The solution is to use an apparently undocumented figure property called
> toolbar. If you type get(spm_figure('Findwin','Graphics')) you will not see
> the toolbar property listed. But if you type
> get(spm_figure('Findwin','Graphics'),'Toolbar') it seems to be an actual
> property. When a figure is created this is set to auto, so the toolbar
> reappears when the figure gets cleared.
>
> The solution is to add a line to the spm_figure('createwin') function. At
> or around line 890, right after 'Visible','off' change it to
> 'Visible','off',...
> 'Toolbar','none');
>
> This will prevent toolbar creation automatically, but the user can still
> look at the toolbar via the View > Figure Toolbar menuitem.
I have included this suggestion in our own version of SPM (line 649 of
spm_figure.m), so it will be part of the next release. I don't know if it
deserves to be included in the updates directory, but users are free to
make this modification if they wish.
All the best,
-John
--
Dr John Ashburner.
Functional Imaging Lab., 12 Queen Square, London WC1N 3BG, UK.
tel: +44 (0)20 78337491 or +44 (0)20 78373611 x4381
fax: +44 (0)20 78131420 http://www.fil.ion.ucl.ac.uk/~john
|