From: ram ye on

I got this warning. I wrote the code in matlab 5, i said
like that, so i changed the matlabrc.m file. it worked well
there. But if i run this program in matlab 7, it gives the
warning like " Warning: uimenu BackgroundColor is non-
functional, and will be removed in a future release. "

I wrote the format for uimenu as


File = uimenu(1,'Label','File ', ...
'Accelerator','F', ...
'BackgroundColor',[.7 .7 .7],'ForegroundColor','black');

But its not working in matlab7. what is the correct syntax
for uimenu in matlab 7
From: us on
"ram ye":
<SNIP syntax evolution...

>
> File = uimenu(1,'Label','File ', ...
> 'Accelerator','F', ...
> 'BackgroundColor',[.7 .7 .7],'ForegroundColor','black');

these days one would could do this, for instance...

fh=figure;
un=nan(2,1);
uh(1)=uimenu(fh,...
'label','&myFile',... % <- ALT+m
'foregroundcolor',[1,1,1]);
uh(2)=uimenu(uh(1),...
'label','&save',... % <- CTRL+s
'accelerator','s',...
'foregroundcolor',[1,1,0]);

% notes
% - there is already a label File in the default menu
% - there is no backgroundcolor (anymore?)

us
 | 
Pages: 1
Prev: Matlab to C++
Next: physical component modeling