Recent

Author Topic: Change superclass of IDE-generated forms  (Read 571 times)

pleumann

  • Jr. Member
  • **
  • Posts: 90
Change superclass of IDE-generated forms
« on: September 09, 2023, 11:51:16 am »
Hi,

I have a case where it would be convenient to extract common behavior of several forms into "something". I am thinking about a specialized TForm subclass TMyClass = class(TForm). Is it safe to change the superclass of IDE-generated forms to that class or will it cause trouble (with the IDE parsing the source code or other expectations)? I assume the designer uses a fixed class for the visual representation anyway, TForm or something else, so components added programmatically would not show up there, but that would be ok.

Best regards
Joerg

 

TinyPortal © 2005-2018