From: Sai on
I made a gui with few buttons, textbox and an axes. when i tried to set 'windowbuttonmotionfcn' for axes i got the same error... u r saying that windowbuttonmotionfcn is figure property then what is the parent figure in my GUI. how do i know that?


"Brendan Hannigan" <bhannigaHELLO(a)THEREmathworks.com> wrote in message <h0qtaf$8mn$1(a)fred.mathworks.com>...
> Hi spongebunny,
>
> The WindowButtonMotionFcn is a figure property, not an axes property. Instead of setting it on the "sub_handle", try setting it on the parent figure.