unable to make invisible for edit box in gui.
2 views (last 30 days)
I have a GUI. In this GUI, I created an empty edit text. I need to make invisible this edit text. I appended the following code at the edit1_Callback function as follows:
function edit1_Callback(hObject, eventdata, handles)
% hObject handle to edit1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of edit1 as text
% str2double(get(hObject,'String')) returns contents of edit1 as a double
It doesn't make edit box invisible. How I can make invisible to edit box in my GUI?
Adam Danz on 19 Aug 2021
> when users choose radiobutton1, this edit box should be invisible
Then you need to move your line of code from the edit1_Callback function to the radio button callback function.