MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Manual de usuario Pagina 255

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 330
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 254
A GUI to Set Simulink Model Parameters
10-31
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
% 'usewhite/jointfilesconvert/287797/bg' to 0 to use default. See ISPC and COMPUTER.
usewhite/jointfilesconvert/287797/bg = 1;
if usewhite/jointfilesconvert/287797/bg
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',...
get(0,'defaultUicontrolBackgroundColor'));
end
Vista de pagina 254
1 2 ... 250 251 252 253 254 255 256 257 258 259 260 ... 329 330

Comentarios a estos manuales

Sin comentarios