function TXXForm.CreateOne(rect: TRect; parent: TControl): TControl;
begin
// 按钮
Result := TXXButton.Create(self);
if (Result is IXXCallback) then // E2015 Operator not applicable to this operand type
begin
(Result as IXXCallback).AfterNew; // E2015 Operator not applicable to this operand type
end;
end;说明:
TXXButton实现了IXXCallback接口, 也继承了TButton现在遇到上面的问题,该如何处理啊?
谢谢..
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货