Can we write a Lazarus component using nothing but pascal code?Well, all Lazarus components are written using Pascal code. There are plenty of examples in various component packages, and in LCL.
Or am I insane?Maybe all component creators are insane, I don't know...
Does anyone have a simple beginners example of code that shows how to do this?The wiki article that you mentioned is the "technical" part of the job, i.e. how to integrate the code into the IDE so that the user can work with it easily. The more difficult part is to write the component code itself. I think the best way to learn this is by looking at examples. Simple components are TChemText (package laz_chemtext), TCaptchaLabel (package captcha_pkg), several components in the industrial package etc.
Ok, so this is good. I am on the correct path.Can we write a Lazarus component using nothing but pascal code?Well, all Lazarus components are written using Pascal code. There are plenty of examples in various component packages, and in LCL.
Your boiler-plate was created by the "New Component" wizard and is a good start.
Maybe all component creators are insane, I don't know...haha well.. they say "genius borders on insanity" but I would not know either :-)
Thank you, now why did 'I' never think of that? Of course, go study the code in actual components others have written.Does anyone have a simple beginners example of code that shows how to do this?The wiki article that you mentioned is the "technical" part of the job, i.e. how to integrate the code into the IDE so that the user can work with it easily. The more difficult part is to write the component code itself. I think the best way to learn this is by looking at examples. Simple components are TChemText (package laz_chemtext), TCaptchaLabel (package captcha_pkg), several components in the industrial package etc.