MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Podręcznik Użytkownika Strona 465

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 759
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 464
An Address Book Reader (GUIDE)
handles.Addresses = Addresses;
guidata(hObject, handles)
return
case 'Cancel '
% Revert back to the original number
set(handles.Contact_Phone,...
'String',Addresses(handles.Index).Phone )
return
end
Page Through Address Book Prev/Next
By clicking the Prev and Next buttons you can page back and forth through
the entries in the address book. Both push buttons use the same callback,
Prev_Next_Callback. You must set the C allback property of both push
buttons to call this subfunction, as the following illustration of the Prev push
button
Callback property setting shows.
Determine Which Button Is Clicked
The callback defines an additional argument, str,thatindicateswhich
button, Prev or Next,wasclicked. ForthePrev button
Callback property,
the
Callback string includes 'Prev' as the last argument. The Next button
Callback string includes 'Next' as the last argument. The value of str
10-91
Przeglądanie stron 464
1 2 ... 460 461 462 463 464 465 466 467 468 469 470 ... 758 759

Komentarze do niniejszej Instrukcji

Brak uwag