Dear All,

I want to move dynamic UI objects around in the same form. Then , I write
the following:

RectanglePtr rtP;
ControlPtr a,b;

a=CtlNewControl(&formP,1203,checkboxCtl,"a",30,30,55,12,stdFont,0,true);
b=CtlNewControl(&formP,1204,checkboxCtl,"b",50,50,55,12,stdFont,0,true);
CtlHideControl(b);
rtP=&(b->bounds);
RctSetRectangle(rtP,70,70,55,12);
CtlShowControl(b);

CtlHideControl(a);
rtP=&(a->bounds);
RctSetRectangle(rtP,50,50,55,12);
CtlShowControl(a); //problem!

In emulator , it forces me to reset after running the last statement.
However, if I replace a, b with 2 static UI. It works!

Why?

Philip


Reply via email to