Filter löschen
Filter löschen

problem with menu

1 Ansicht (letzte 30 Tage)
Maurizio
Maurizio am 23 Dez. 2011
is it possible to increase the size of the windows, font, and display on the center of the scree the MENU interface because for example when i'm using the below code the menu appear on the top left and with font to small. insdati=menu('Can you please help me?','Yes','No')

Akzeptierte Antwort

Grzegorz Knor
Grzegorz Knor am 23 Dez. 2011
There is no such options in menu. I suggest you to copy and edit this function. It is located in folder:
matlabroot/toolbox/matlab/uitools
To display on the center of the screen, you can e.g. replace this lines:
%====================================================================
% ACTIVATE
%=========================================================================
% Make figure visible
%------------------------------------------------------------------------
set( menuFig, 'Visible', 'on' );
with:
%=========================================================================
% ACTIVATE
%=========================================================================
% Make figure visible
%------------------------------------------------------------------------
movegui(menuFig,'center')
set( menuFig, 'Visible', 'on' );
To change other parameters you need to change the relevant parts of the function.
  5 Kommentare
Maurizio
Maurizio am 23 Dez. 2011
can you please also help me for the size and the font?
Maurizio
Maurizio am 23 Dez. 2011
I modify thw size I would like to create the size of the font.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Interactive Control and Callbacks finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by