Changeset 554 for trunk/Packages/CevoComponents/GraphicSet.pas
- Timestamp:
- Apr 24, 2024, 11:19:11 AM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CevoComponents/GraphicSet.pas
r471 r554 43 43 { TGraphicSet } 44 44 45 TGraphicSet = class 45 TGraphicSet = class(TComponent) 46 public 46 47 Name: string; 47 48 Data: TBitmap; … … 53 54 procedure LoadFromFile(FileName: string); 54 55 procedure SaveToFile(FileName: string); 55 constructor Create ;56 constructor Create(AOwner: TComponent); override; 56 57 destructor Destroy; override; 57 58 end; … … 71 72 GraphicSetFileExt = '.grs'; 72 73 74 procedure Register; 75 73 76 74 77 implementation … … 77 80 SWrongFileFormat = 'Wrong file format.'; 78 81 SGraphicItemNotFound = 'Graphic item %s not found in graphic set %s.'; 82 83 procedure Register; 84 begin 85 RegisterComponents('C-evo', [TGraphicSet]); 86 end; 79 87 80 88 { TGraphicSetItem } … … 227 235 end; 228 236 229 constructor TGraphicSet.Create; 230 begin 237 constructor TGraphicSet.Create(AOwner: TComponent); 238 begin 239 inherited; 231 240 Data := TBitmap.Create; 232 241 Data.PixelFormat := TPixelFormat.pf24bit; … … 259 268 function TGraphicSets.AddNew(Name: string): TGraphicSet; 260 269 begin 261 Result := TGraphicSet.Create ;270 Result := TGraphicSet.Create(nil); 262 271 Result.Name := Name; 263 272 Add(Result);
Note:
See TracChangeset
for help on using the changeset viewer.