MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Betriebsanweisung Seite 366

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 759
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 365
9 Managing and Sh aring Application Data in GUIDE
.
.
.
% Update handles structure
guidata(hObject, h andles);
The Color Palette nee ds to remember the Icon Editor for later:
% in colorPalette
function guide_col orpalette_OpeningFcn(hObject,eventdata,handles,varargin)
handles.output = hObject;
.
.
.
handles.iconEditor = [];
iconEditorInput = find(strcmp(varargin, 'ico nEditor'));
if ~isempty(iconEd itorInput)
handles.iconEditor = varargin{iconEditorInput+1};
end
.
.
.
% Update handles structure
guidata(hObject, h andles);
The Tool Palette also needs to remember the Icon Editor:
% in toolPalette
function guide_too lpalette_OpeningFcn(hObject, ...
eventdata, handles, varargin)
handles.output = hObject;
.
.
.
handles.iconEditor = [];
iconEditorInput = find(strcmp(varargin, 'ico nEditor'));
if ~isempty(iconEd itorInput)
handles.iconEditor = varargin{iconEditorInput+1};
end
9-36
Seitenansicht 365
1 2 ... 361 362 363 364 365 366 367 368 369 370 371 ... 758 759

Kommentare zu diesen Handbüchern

Keine Kommentare