MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Guide de l'utilisateur Page 465

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 759
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 464
1 2 ... 460 461 462 463 464 465 466 467 468 469 470 ... 758 759

Commentaires sur ces manuels

Pas de commentaire