MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE User's Guide Page 454

  • Download
  • Add to my manuals
  • Print
  • Page
    / 759
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 453
10 Examples of GUIDE GUIs
Set 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 Result sLis t_CreateFcn(hObject, eventdata, handles)
% Hint: listbox controls us ually have a white background, cha nge
% 'usewhite/jointfilesconvert/387265/bg' to 0 to use default. See ISPC and C OMPUTER.
usewhite/jointfilesconvert/387265/bg = 1;
if usewhiteb g
set(hObject,'BackgroundColor','white') ;
else
set(hObject,'BackgroundColor',...
get(0,'defaultUicontrolBackgroundColor '));
end
10-80
Page view 453
1 2 ... 449 450 451 452 453 454 455 456 457 458 459 ... 758 759

Comments to this Manuals

No comments