动态生成的控件在设计期不能获得焦点,鼠标无法选取,请问是怎么回事?谢谢
wltom 2007-04-17 08:56:53 重新封装了tspeedbutton,在新的控件中又NEW了几个BUTTON,但这些BUTTON在设计获取不了焦点,
TSpeedButton *btn = new TSpeedButton(this);
btn->Left=Left+(i+1)*Width;
btn->Top=Top;
btn->Width=Width;
btn->Height=Height;
btn->Parent=this->Parent;
btn->Flat = false;
btn->Enabled = true;
btn->Visible = true;
btn->Cursor = crDefault;