Stefano Biggi Posted November 27, 2019 Share Posted November 27, 2019 Hello, I need that all my frames have the same virtual method XXXX. I created a common ancestor for the frames: TCommonFrame = class(TUniFrame) procedure XXXX; virtual;abstract; end; and placed it into MainModule. For my actual Frames I changed manually their ancestor from TUniFrame to TCommonFrame: TUniFrame1 = class(TCommonFrame) procedure XXXX;override; end; where I overrided the XXXX method. Everything looks nice and works fine until the moment when I decides to "View as Text" any Frame or merely restart Delphi. After that any my Frame immediately starts looking as a Form (border view is changed), a lot of errors appear and nothing works. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 27, 2019 Administrators Share Posted November 27, 2019 Hello, Can you send an example project? Link to comment Share on other sites More sharing options...
Stefano Biggi Posted November 28, 2019 Author Share Posted November 28, 2019 the project... SBTestFrame.zip Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 29, 2019 Administrators Share Posted November 29, 2019 Problem here is that Delphi can not show ancestors of TFrame in IDE unless they are properly registered with IDE. You can try using Class Helpers instead. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now