kann ich Unterstützung bekommen damit meine Komponente auf Änderunegn in der Datenmenge richtig reagiert ?
unit Unit_DBmemoS;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls,
DB;
Delphi-Quellcode:
type
TDBmemoS = class(TMemo)
private
{ Private-Deklarationen }
Fdatasource : Tdatasource ;
FdataField : String;
procedure Setdatasource(const Value: Tdatasource);
procedure SetdataField(const Value: String);
protected
{ Protected-Deklarationen }
public
{ Public-Deklarationen }
published
{ Published-Deklarationen }
property datasoure : Tdatasource read Fdatasource write Setdatasource ;
property dataField : String read FdataField write SetdataField ;
end;
procedure Register;
implementation
procedure Register;
begin
RegisterComponents('TOOLS', [ TDBmemoS]);
end;
procedure TDBmemoS.SetdataField(const Value: String);
begin
FdataField := Value;
end;
procedure TDBmemoS.Setdatasource(const Value: Tdatasource);
begin
Fdatasource := Value;
end;
end.