I'm trying to make an axis (that I have put a image on) to trigger the button down function, and it doesnt want to work with the image on it. I have tried to adjust pickableparts and hittest, but nothing works. function board_OpeningFcn(hObject, eventdata, handles, varargin) board = imshow('resources/board.png'); board.HitTest = 'off'; board.PickableParts = 'none'; axes4.PickableParts = 'all'; handles.output = hObject; guidata(hObject, handles);....function axes4_ButtonDownFcn(hObject, eventdata, handles) disp('At line 95');function axes4_CreateFcn(hObject, eventdata, handles)
The ButtonDownFcn still, only works without the image, the image still conflicts with the axis even though I turned off HitTest and PickableParts for the image in the OpeningFcn for the GUI.
Best Answer