User`s guide

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
% 'usewhitebg' to 0 to use default. See ISPC and C OMPUTER.
usewhitebg = 1;
if usewhiteb g
set(hObject,'BackgroundColor','white') ;
else
set(hObject,'BackgroundColor',...
get(0,'defaultUicontrolBackgroundColor '));
end
10-80