diff --git a/funcext/tvclib/tcomponent.tsf b/funcext/tvclib/tcomponent.tsf index 0575fe7..904e99c 100644 --- a/funcext/tvclib/tcomponent.tsf +++ b/funcext/tvclib/tcomponent.tsf @@ -193,8 +193,9 @@ public begin end - function relnotification(ac,Operation);//通知关联的组件 + function relnotification(Operation);//通知关联的组件 begin + ac := self(self); ow := ac; while ow do begin @@ -347,7 +348,7 @@ public if not FComponentCreated then exit; Destroying(); ////////////////////////// - relnotification(self(true),"recycling"); + relnotification("recycling"); /////////////////////// DestroyComponents(); If FOwner is class(tcomponent)Then FOwner.RemoveComponent(self(true)); //self diff --git a/funcext/tvclib/utslvclcoolbar.tsf b/funcext/tvclib/utslvclcoolbar.tsf index 4bf1f34..1175c6d 100644 --- a/funcext/tvclib/utslvclcoolbar.tsf +++ b/funcext/tvclib/utslvclcoolbar.tsf @@ -60,7 +60,6 @@ type tcustomcoolbar=class(tcustomcontrol) begin doControlALign(); InvalidateRect(nil,false); - r := getarrange(); end end else if fsizenode then @@ -584,7 +583,7 @@ type tcoolbarlines = class() // for i,v in rs do begin if v<1 then continue; - if y>=b and y<=b+v then //确定行 + if (y>=b and y<=b+v) or (i=0 and y