1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
| function [H,hfig] = Fig_Config(varargin)
getd;
H=Listing_Modele.sci;
// Récupération de la taille de l'écran
taille=get(0, "screensize_px");
// Création de la figure
// ===========================
// Dimension de la figure en pixels
longueur=750;
hauteur=400;
// Création de la figure longueur hauteur
fig_color = [0.831 0.816 0.784];
// Définition des attributs
hfig= figure('BackgroundColor',fig_color,...
'figure_id',1,...
'menubar','none',...
'menubar_visible','on',...
'toolbar', 'none',...
'toolbar_visible', 'off',...
'figure_position' ,[(taille(3)-longueur)/2-40 (taille(4)-(hauteur))/4-36],...
'figure_name',['Configuration Simulation '],...
'tag','fig_ConfigSimulation',...
'dockable', 'off',...
'resize', 'off');
set(hfig,'CloseRequestFcn',["Menu_ConfigSimun.sci"+"(""close""," + string(hfig.figure_id) + ')']);
H.Fichier = uimenu(hfig, 'Label', '&Fichier', 'callback', ["Menu_ConfigSimun.sci"+"(""Find_Launch""," + string(hfig.figure_id) + ')']);
H.Launch = uimenu(H.Fichier, 'Label', '&Nouvelle Simulation');
H.Launch_Mod=list();
for i = 1:max(size(H.NomsModele))
H.Launch_Mod(i) = uimenu(H.Launch, 'Label', 'Modele ' + H.NomsModele(i), 'Visible', H.Modelesused(i));
end
H.Quitter = uimenu(H.Fichier,'Label','&Quitter','tag','Quitter', 'callback',["Menu_ConfigSimun.sci"+"(""close""," + string(hfig.figure_id) + ')']);
endfunction |
Partager