[Lazarus] Is it meaningful or possible to change the visibility or the properties and events in a form or datamodule, ie make the private or protected?

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Wed Mar 28 12:04:00 CEST 2012

On Wed, 28 Mar 2012, Frank Church wrote:

> On 27 March 2012 06:03, Frank Church <vfclists at gmail.com> wrote:
>> On 23 March 2012 14:15,  <michael.vancanneyt at wisa.be> wrote:

>>> You could even substitute the complete TMyForm form with another one,
>>> depending on
>>> configuration options.
>>> Michael.
>> Will I be able to develop TMyForm in the Object Inspector as usual,
>> although TForm has been redefined as a class of TMyForm?

In code: yes.
If you remove properties: they still will be visible in the object inspector . 
This can be remedied by registering TMyForm in the IDE, using the custom forms package.

> Will the unit
>> in which TMyForm defined still use the Forms unit, or will that be
>> inherited from the inclusion of the unit appforms (in your example)?

You must use the Forms unit for many property type declarations, 
but the one from appforms will be used.

>> Is there some place in the Free Pascal or Object Pascal docs that the
>> principles are explained?

Not to my knowledge. I do have an article about the custom form registration
in the IDE.


More information about the Lazarus mailing list