Moving multiple boxes in figure?

前端 未结 3 1411
感情败类
感情败类 2021-01-24 04:00

I already have the functions required to drag and drop a single box in a figure in MATLAB. The code I wrote fills the figure with several boxes. With another loop I filled the f

3条回答
  •  一整个雨季
    2021-01-24 04:42

    As Jonas alludes to, the 'HandleVisibility' property of an object will determine if the object shows up in its parent's list of children, and thus if it will be returned by functions like FINDOBJ. The standard fix is to use the function FINDALL instead.

    However, the 'HandleVisibility' property also comes into play in determining whether or not an object can become the current object (i.e. returnable by the function GCO). If it is set to 'off', then that object can't become the current object. Additionally, if the 'HandleVisibility' property of the parent figure of an object is set to 'off' then none of its children (including said object) can become the current object.

    If 'HandleVisibility' is set to 'on' or 'callback' for all your objects and figures, then I think everything should work fine.

提交回复
热议问题