[lazarus] New component...

Andrew Johnson aj_genius at hotmail.com
Sat Sep 7 21:10:54 EDT 2002

On Sat, 7 Sep 2002 19:15:48 -0500
"Tony Maro" <TonyM at nlisc.com> wrote

>I just finished a component that turns a common TEdit control into one with 
>a drop-down calendar when double-clicked, aka MS Money.  Everything works 
>great, but I don't know how to make it appear in the VCL in Lazarus.  Right 
>now I have to create it at runtime.
>I've looked through the Lazarus sources, but have no clue where to start.  
>Can someone point me in the right direction?

There isn't really a right direction yet.. To my knowledge Packages and 
Registering aren't really supported yet. To use it we have to include it in 
Lazarus, so either you modify your Sources and recompile to include it, or 
if its a control which is expected to be part of the LCL anyway, you can 
send it into someone who can add to CVS. I think it should go in CVS, since 
Delphi, if not Kylix, has a DateTimePicker component.. but as I haven't used 
it in awhile I am not positive. To modify your local sources to include it, 
you need to add it to the LCL, and then include it in the Lazarus File which 
registers it. I will give you the way I know how.. there may yet be an 
easier way, but I don't know.

1.) Put the Source File in the LCL directory
2.) Add it to the Uses section of lcl/allunits.pp
3.) Add it to the implicit units section of lcl/Makefile.fpc
4.) Run fpcmake in the lcl directory
5.) Add the file to the uses section of IDEComp.pp
6.) In IDEComp.pp, RegisterStandardComponents, insert a Register Line 
somewhere amongst the others listed, of the format :


7.)You should probably make a diff of the lazarus directory which can 
reapply these changes later.. backups are good! ;-)

8.) make clean all

It should now be available... I know, rather convoluted, but eventually 
we'll have a better way of doing it I am sure.

Anyone out there who knows any more on this info than me, feel free to tell 


Chat with friends online, try MSN Messenger: http://messenger.msn.com

More information about the Lazarus mailing list