MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Uživatelská příručka Strana 371

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 759
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 370
Making Multiple GUIs Work Together
.
.
.
rows = size(handles.mIconCData, 1);
cols = size(handles.mIconCData, 2);
pt = get(handles.icon,'currentp oint');
overicon = (pt(1,1)>=0 && p t(1,1)<=rows) && .. .
(pt(1,2)>=0 && pt(1,2)<=cols);
.
.
.
if ~overicon
set(hObject,'pointer','arrow');
else
toolPalette = handles.toolPalette;
toolPaletteHandles = guidata(toolPalette);
tool = toolPaletteHandles.mCurrent Tool;
cdata = round(mean(get(tool, 'cdata'),3))+1;
if ~isempty(cda ta)
set(hObject,'pointer','custom','Pointe rShapeCData', ...
cdata(1:16, 1: 16), 'PointerShapeHotSpot',[ 16 1]);
end
end
.
.
.
Closing All Windows When Complete
When the Icon Editor opens, it opens the C olor Palette and Tool Palette,
saving their handles and other data in the
handles structure. The last thing
the Icon Editor
OpeningFcn does is to call uiwait to defer output until the
GUI is complete. When you n eed to close the windows, neither the Color
Palette nor Tool Palette close independently of the Icon Editor because there
is a complicated close sequence involved. Y ou can close all window s using
one of these methods:
Click the OK button or the Cancel button in the Tool and Color Palette s
andthenclosetheIconEditorWindow.
Close the Icon Editor window directly.
9-41
Zobrazit stránku 370
1 2 ... 366 367 368 369 370 371 372 373 374 375 376 ... 758 759

Komentáře k této Příručce

Žádné komentáře