All, Recently, I faced a problem in setting no frame for a push button which I dynamically create it. The code is as follows: // code starts here ControlPtr p; p = CtlNewControl((VoidPtr) &frm, PushButId, pushButtonCtl, "abc", 5, 127, 28, 32, stdFont, 1, true); p->attr.frame = 0x00; CtlDrawControl(p); // code ends here I have proofed that it works for button, but not in push button. Why ? Thanks for your help in advanced. Charles Woo
