Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Inherited Forms... (https://www.delphipraxis.net/107997-inherited-forms.html)

FaNIX 6. Feb 2008 06:20


Inherited Forms...
 
I have a form, which doesn't have a lot of code in it, just the basic code that will be used on all forms inside my application. I want to use this form as BASE, and inherit from it when creating new forms, now this works, as you can only select New Unit, and select the inherited form to create one.

My question is: Inside my base form, i included 2 units, which contains common functions that will be used throughout the application. Now when I include these units inside my Base Form, I do have access to all it's the methods inside the included units, but inside my inherited forms, I can't access these methods, am I doing something wrong?

Bernhard Geyer 6. Feb 2008 06:28

Re: Inherited Forms...
 
You also must add this units to the unit of the inherited forms.

Muetze1 6. Feb 2008 10:44

Re: Inherited Forms...
 
As said before: the uses statement is not inherited (like in C++ the preprocessor include's)


Alle Zeitangaben in WEZ +1. Es ist jetzt 21:25 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz