<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>> Date: Sat, 15 Jun 2013 13:34:52 +0200<br><div>> From: pascaldragon@googlemail.com<br>> To: fpc-pascal@lists.freepascal.org<br>> Subject: Re: [fpc-pascal] Application.onChangeComponentCount ?<br>> <br>> On 15.06.2013 12:11, Fred van Stappen wrote:<br>> ><br>> ><br>> > Hello.<br>> ><br>> > Is there a plan to add a function like Application.onChangeComponentCount ?<br>> ><br>> > I want to catch a signal when a new form is created (or deleted).<br>> > I know that the best way is to create a parent form and from this use<br>> > the form.oncreate event.<br>> > But if the form has no parent the only way to know if a new form was<br>> > created (or deleted) is to check if Application.ComponentCount was<br>> > changed. (with a timer)<br>> > So i will be happy if a function like<br>> > "Application.onChangeComponentCount" is added in Application class.<br>> ><br>> > But maybe there is a other way to know if a new form was created (or<br>> > deleted) ?<br>> <br>> You should ask this on the Lazarus list. TApplication is part of the LCL <br>> not the FCL.<br>> <br>> Regards,<br>> Sven<br><br>//////////////////////<br><br>> TApplication is part of the LCL not the FCL.<br><br>Aaargh, ok, so sorry to disturb (but i will be happier if TApplication was part of FCL). ;-)<br><br><br><br>A<br><br></div> </div></body>
</html>