|
|
Q: Removal of default uimenus on GUI toolbar
Hi,
I'm in the process of creating a GUI and I've realized that I don't need the majority of the default uimenus that are at the top of
the figure (i.e., 'File', 'Edit', 'View', etc). However, rather than removing the toolbar entirely, I'd like to keep perhaps the 'File'
uimenu. Is there a way to do this? Can I identify these uimenus with the findobj command?
-Mark
|
|
0
|
|
|
|
Reply
|
bray1 (5)
|
2/12/2004 3:58:49 PM |
|
Cueball wrote:
>
>
> Hi,
> I'm in the process of creating a GUI and I've realized that I
> don't need the majority of the default uimenus that are at the top
> of
> the figure (i.e., 'File', 'Edit', 'View', etc). However, rather
> than removing the toolbar entirely, I'd like to keep perhaps the
> 'File'
> uimenu. Is there a way to do this? Can I identify these uimenus
> with the findobj command?
> -Mark
>
Use the findall command to get the handles, then check the Tags of
the returned objects to find the menus you're after.
Andy
|
|
0
|
|
|
|
Reply
|
andyNOSPAM.dixon (5)
|
2/12/2004 4:15:26 PM
|
|
"Cueball" <bray@REvuseMOVE.vanderbilt.edu> wrote in message
news:au7n20h8ie4r1l3mc2o9r7sggniignvhh7@4ax.com...
> Hi,
> I'm in the process of creating a GUI and I've realized that I don't need
the majority of the default uimenus that are at the top of
> the figure (i.e., 'File', 'Edit', 'View', etc). However, rather than
removing the toolbar entirely, I'd like to keep perhaps the 'File'
> uimenu. Is there a way to do this? Can I identify these uimenus with the
findobj command?
> -Mark
Maybe
set(gcf,'menubar','none')
will do what you want.
From the Figure Property docs:
This property affects only built in menus. Menus defined with the uimenu
command are not affected by this property.
Brett
|
|
0
|
|
|
|
Reply
|
shoelson (825)
|
2/12/2004 7:11:06 PM
|
|
Here's an example of what you have to do:
<http://www.mathworks.com/access/helpdesk/help/toolbox/runtime/design13.shtml#5112>
|
|
0
|
|
|
|
Reply
|
no18 (4421)
|
2/12/2004 8:30:36 PM
|
|
|
3 Replies
32 Views
(page loaded in 0.847 seconds)
|
|
|
|
|
|
|
|
|