MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Guia do Utilizador Página 465

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 759
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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
Vista de página 464
1 2 ... 460 461 462 463 464 465 466 467 468 469 470 ... 758 759

Comentários a estes Manuais

Sem comentários