MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Uživatelská příručka Strana 454

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 759
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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
Zobrazit stránku 453
1 2 ... 449 450 451 452 453 454 455 456 457 458 459 ... 758 759

Komentáře k této Příručce

Žádné komentáře