MATLAB: Doesn’t the ‘ButtonDownFcn’ of the static text box get activated when it is located above a frame

buttondownfcnframeMATLABuicontrol

I have a static text box that is located above a frame in my GUI. I have its 'Enable' property set to 'inactive', so when I click on it, its 'ButtonDownFcn' callback should be activated. However, when I left-click on the text box, the 'ButtonDownFcn' isn't activated. If I right-click on the text box, the 'ButtonDownFcn' is activated.

Best Answer

This bug has been fixed for Release 14 (R14). For previous releases, read below for any possible workarounds:
This appears to be a bug in MATLAB.
It appears that this behavior is related to the 'Enable' property of the frame itself. If it is set to 'on' then this behavior occurs. If it is set to 'inactive', then the GUI behaves as expected, i.e. the 'ButtonDownFcn' for the text box is executed when it is clicked on.