Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Unnecessary code in library?
Mon, Oct 19 2015 4:46 PMPermanent Link

Christian Kaufmann

I still see a lot of these methods:

function TPanelMinimizeButton.GetInterfaceClassName: String;
begin
  Result:=TPanelMinimizeButton.ClassName;
end;


since there is this method now:

function TInterfaceController.GetInterfaceClassName: String;
begin
  Result:=ClassName;
end;


Is the code of the first method still necessary?

cu Christian
Mon, Oct 19 2015 5:23 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Christian,

<< Is the code of the first method still necessary? >>

Yes, I looked into this and remembered why it was necessary.  If a descendant control does *not* implement an interface that matches its class name (TForm1 = class(TForm) -> every single form in a visual project), then the control will have no interface.

Tim Young
Elevate Software
www.elevatesoft.com
Image