Hello All,
I have a hopefully quick and easy question for you guys that I need help answering. I have looked around for quite a while and it is my understanding that handles are not automatically created for static text boxes, at least those that are made in GUIDE, which mine is. I have created the callback function and in it there is a comment that says:
"handles empty – handles not created until after all CreateFcns called"
What I am trying to do is have an error come up if the user inputs an incorrect number in an editable text box. This will be done by first setting the Static Text visibility to off. I can already achieve this by writing "set(hObject, 'visible', 'off'); " in the callback function for the text box. However, using hObject is only possible within the callback for that function so I am trying to use the handle like from a normal push button: "set(handles.ErrorText, 'visible', 'on'); " to be created after a push button is pressed and it does not work.
If it is because of the fact that no handle has been created for it, could you help me learn how to make one because I can't figure it out.
Any help will be much appreciated. Thanks
Best Answer