AtlasSoft

Criando componente

Nov 30th, 2023 (edited)
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.70 KB | Source Code | 0 0
  1. unit Component1;
  2.  
  3. interface
  4.  
  5. uses
  6.   System.SysUtils, System.Classes;
  7.  
  8. type
  9.   TComponent1 = class(TComponent)
  10.   private
  11.     FAtlasText: string;
  12.     procedure SetAtlasText(const Value: string);
  13.  
  14.     { Private declarations }
  15.   protected
  16.     { Protected declarations }
  17.   public
  18.     { Public declarations }
  19.   published
  20.     { Published declarations }
  21.     property AtlasText : string  read FAtlasText write SetAtlasText;
  22.   end;
  23.  
  24. procedure Register;
  25.  
  26. implementation
  27.  
  28. procedure Register;
  29. begin
  30.   RegisterComponents('Atlas Teste Comp', [TComponent1]);
  31. end;
  32.  
  33. { TComponent1 }
  34.  
  35. { TComponent1 }
  36.  
  37. procedure TComponent1.SetAtlasText(const Value: string);
  38. begin
  39.   FAtlasText := Value;
  40. end;
  41.  
  42. end.
Tags: pascal
Add Comment
Please, Sign In to add comment