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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
% Create handles.figure
handles.fig = figure(...
'DockControl','off', ...
'NumberTitle','off', ...
'Menubar','none', ...
'Toolbar','none', ...
'Name', 'Next prev', ...
'UserData', 1, ...
'Units', 'pixels', ...
'Position', [0 0 400 300]);
movegui(handles.fig,'center');
% Create Next button
handles.next = uicontrol(...
'Parent', handles.fig, ...
'Units', 'pixels', ...
'Position', [310 10 80 20], ...
'String', 'Next', ...
'Callback', @(obj,evt) Next(obj));
% Create Prev button
handles.prev = uicontrol(...
'Parent', handles.fig, ...
'Units', 'pixels', ...
'Position', [220 10 80 20], ...
'String', 'Prev', ...
'Callback', @(obj,evt) Prev(obj));
% Create first panel
handles.pane(1) = uipanel(...
'Parent', handles.fig, ...
'Units', 'pixels', ...
'Position', [10 40 380 240], ...
'Title', 'Premier jeu de donnees', ...
'BackgroundColor', get(handles.fig, 'Color'), ...
'Visible', 'off');
% Create second panel
handles.pane(2) = uipanel(...
'Parent', handles.fig, ...
'Units', 'pixels', ...
'Position', [10 40 380 240], ...
'Title', 'Deuxieme jeu de donnees', ...
'BackgroundColor', get(handles.fig, 'Color'), ...
'Visible', 'off');
% Create third panel
handles.pane(3) = uipanel(...
'Parent', handles.fig, ...
'Units', 'pixels', ...
'Position', [10 40 380 240], ...
'Title', 'Troisieme jeu de donnees', ...
'BackgroundColor', get(handles.fig, 'Color'), ...
'Visible', 'off');
% Update handles structure
guidata(handles.fig, handles);
% Update display
UpdateDisplay(handles); |
Partager