dear all,
I was wondering if there is some way to overwrite a component procedure without creating a new component.
I mean, inserting
somewhere here
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Windows, Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
ExtCtrls, Buttons, StdCtrls, ComCtrls, Spin, FileCtrl;
type
or here
program project1;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Interfaces, // this includes the LCL widgetset
Forms, Unit1, LResources;
{$IFDEF WINDOWS}{$R project1.rc}{$ENDIF}
begin
Application.Title:='calcio4ever2011';
{$I project1.lrs}
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end.
some piece of code in order to substitute a procedure of a component.
(say the "onPaint" procedure of a label), so that people modifying my code can easily also modify the way the component react to instruction (without being forced to install a new component made by me, modifying it, compile it and so on)
is it possibile?