草庐IT

windows - 我怎样才能释放一个 Tpanel 有一个 TbitBtn 调用释放 Tpanel

我创建了一个自定义Tpanel并在里面放置了各种自定义组件......procedurePanel_Comp(Location:TWinControl;NumOfComp:Integer;Left,Top,Height,width:Integer);beginMyPanel:=TsPanel.Create(Conf);MyPanel.Name:='MyPanel'+IntToStr(NumOfComp);MyPanel.Parent:=Location;MyPanel.Left:=Left;MyPanel.Top:=Top;MyPanel.Height:=Height;MyPanel.

c++ - TBitBtn 和 TButton 继承链发生了什么变化?

我最近开始将我的RADStudio2007项目升级到RADStudio2009。我注意到的一件事是看似简单的代码突然无法编译。示例代码:classCButtonPopupMenu{//Snippublic:voidInit(TButton*SrcButton){SrcButton->OnClick=OnButtonClick;}private:void__fastcallOnButtonClick(TObject*Sender){//Dosomebuttonclickstuff}};//SnipTButtonbutton=newTButton(this);TBitBtnbitBtn=n