|
a |
|
b/edit3_CreateFcn.m |
|
|
1 |
% This function decides the value of static text which hold info about |
|
|
2 |
% maximum of Threshold |
|
|
3 |
% --- Executes during object creation, after setting all properties. |
|
|
4 |
function edit3_CreateFcn(hObject, eventdata, handles) |
|
|
5 |
% hObject handle to edit3 (see GCBO) |
|
|
6 |
% eventdata reserved - to be defined in a future version of MATLAB |
|
|
7 |
% handles empty - handles not created until after all CreateFcns called |
|
|
8 |
|
|
|
9 |
% Hint: edit controls usually have a white background on Windows. |
|
|
10 |
% See ISPC and COMPUTER. |
|
|
11 |
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) |
|
|
12 |
set(hObject,'BackgroundColor','white'); |
|
|
13 |
end |
|
|
14 |
|
|
|
15 |
% This is the default maximum value for the slider |
|
|
16 |
handles.Max_threshold = 100; |
|
|
17 |
set(hObject,'string', floor(handles.Max_threshold)); |
|
|
18 |
|
|
|
19 |
% Update handles structure |
|
|
20 |
guidata(hObject, handles); |
|
|
21 |
end |