MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Spécifications Page 196

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 216
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 195
5 GUI Applications
5-30
when you add the list box and automatically sets the Callback property to
execute this subfunction whenever the callback is triggered (which happens
when users select an item in the list box).
In this case, there is no need for the list box callback to execute, so you should
delete it from the GUI M-file. It is important to remember to also delete the
Callback property string so MATLAB does not attempt to execute the callback.
You can do this using the property inspector:
See the description of list boxes for more information on how to trigger the list
box callback.
Setting the Background to White
The list box create function enables you to determine the background color of
the list box. The following code shows the create function for the list box that
is tagged
ResultsList.
function ResultsList_CreateFcn(hObject, eventdata, handles)
% Hint: listbox controls usually have a white background, change
% 'usewhitebg' to 0 to use default. See ISPC and COMPUTER.
usewhite/jointfilesconvert/339281/bg = 1;
if usewhite/jointfilesconvert/339281/bg
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end
Vue de la page 195
1 2 ... 191 192 193 194 195 196 197 198 199 200 201 ... 215 216

Commentaires sur ces manuels

Pas de commentaire