Changeset 554 for trunk/Packages/CevoComponents
- Timestamp:
- Apr 24, 2024, 11:19:11 AM (8 months ago)
- Location:
- trunk/Packages/CevoComponents
- Files:
-
- 1 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CevoComponents/ButtonA.pas
r548 r554 9 9 type 10 10 TButtonA = class(TButtonBase) 11 constructor Create( aOwner: TComponent); override;11 constructor Create(AOwner: TComponent); override; 12 12 private 13 13 FCaption: string; 14 procedure SetCaption(Text: string); override;15 14 procedure SetFont(const Font: TFont); 16 15 protected 16 procedure SetCaption(Text: string); override; 17 17 procedure Paint; override; 18 18 public … … 34 34 end; 35 35 36 constructor TButtonA.Create( aOwner: TComponent);36 constructor TButtonA.Create(AOwner: TComponent); 37 37 begin 38 38 inherited; -
trunk/Packages/CevoComponents/ButtonB.pas
r531 r554 9 9 type 10 10 TButtonB = class(TButtonBase) 11 constructor Create( aOwner: TComponent); override;11 constructor Create(AOwner: TComponent); override; 12 12 private 13 13 FMask: TBitmap; … … 37 37 end; 38 38 39 constructor TButtonB.Create( aOwner: TComponent);39 constructor TButtonB.Create(AOwner: TComponent); 40 40 begin 41 41 inherited; -
trunk/Packages/CevoComponents/ButtonBase.pas
r531 r554 32 32 procedure SetGraphic(AValue: TBitmap); 33 33 public 34 constructor Create( aOwner: TComponent); override;34 constructor Create(AOwner: TComponent); override; 35 35 property Graphic: TBitmap read FGraphic write SetGraphic; 36 36 // property DownSound: string read FDownSound write FDownSound; … … 50 50 // MMSystem; 51 51 52 constructor TButtonBase.Create( aOwner: TComponent);52 constructor TButtonBase.Create(AOwner: TComponent); 53 53 begin 54 54 inherited; -
trunk/Packages/CevoComponents/ButtonC.pas
r531 r554 8 8 type 9 9 TButtonC = class(TButtonBase) 10 constructor Create( aOwner: TComponent); override;10 constructor Create(AOwner: TComponent); override; 11 11 private 12 12 FIndex: Integer; … … 30 30 end; 31 31 32 constructor TButtonC.Create( aOwner: TComponent);32 constructor TButtonC.Create(AOwner: TComponent); 33 33 begin 34 34 inherited; -
trunk/Packages/CevoComponents/ButtonN.pas
r531 r554 9 9 type 10 10 TButtonN = class(TGraphicControl) 11 constructor Create( aOwner: TComponent); override;11 constructor Create(AOwner: TComponent); override; 12 12 private 13 13 FPossible, FLit: Boolean; … … 45 45 end; 46 46 47 constructor TButtonN.Create( aOwner: TComponent);47 constructor TButtonN.Create(AOwner: TComponent); 48 48 begin 49 49 inherited; -
trunk/Packages/CevoComponents/CevoComponents.lpk
r548 r554 37 37 <Description Value="C-evo components"/> 38 38 <Version Major="1" Minor="2"/> 39 <Files Count="1 6">39 <Files Count="17"> 40 40 <Item1> 41 41 <Filename Value="Area.pas"/> … … 104 104 <Item15> 105 105 <Filename Value="GraphicSet.pas"/> 106 <HasRegisterProc Value="True"/> 106 107 <UnitName Value="GraphicSet"/> 107 108 </Item15> … … 110 111 <UnitName Value="Texture"/> 111 112 </Item16> 113 <Item17> 114 <Filename Value="ButtonG.pas"/> 115 <HasRegisterProc Value="True"/> 116 <UnitName Value="ButtonG"/> 117 </Item17> 112 118 </Files> 113 119 <CompatibilityMode Value="True"/> -
trunk/Packages/CevoComponents/CevoComponents.pas
r456 r554 10 10 uses 11 11 Area, ButtonA, ButtonB, ButtonC, ButtonN, EOTButton, ButtonBase, DrawDlg, 12 Sound, BaseWin, AsyncProcess2, GraphicSet, Texture, LazarusPackageIntf; 12 Sound, BaseWin, AsyncProcess2, GraphicSet, Texture, ButtonG, 13 LazarusPackageIntf; 13 14 14 15 implementation … … 24 25 RegisterUnit('DrawDlg', @DrawDlg.Register); 25 26 RegisterUnit('BaseWin', @BaseWin.Register); 27 RegisterUnit('GraphicSet', @GraphicSet.Register); 28 RegisterUnit('ButtonG', @ButtonG.Register); 26 29 end; 27 30 -
trunk/Packages/CevoComponents/DrawDlg.pas
r531 r554 132 132 MousePos2: TPoint; 133 133 {$IFDEF UNIX} 134 MousePosNew: TPoint;135 134 NewFormPos: TPoint; 136 135 {$ENDIF} … … 149 148 MoveMousePos := ClientToScreen(Point(X, Y)); 150 149 MoveFormPos := Point(Left, Top); 151 MousePosNew := Mouse.CursorPos;152 150 // Activate move only if mouse position was not changed during inherited call 153 151 if (MousePos1.X = MousePos2.X) and (MousePos1.Y = MousePos2.Y) then begin -
trunk/Packages/CevoComponents/EOTButton.pas
r533 r554 25 25 procedure Paint; override; 26 26 public 27 constructor Create( aOwner: TComponent); override;27 constructor Create(AOwner: TComponent); override; 28 28 destructor Destroy; override; 29 29 procedure SetButtonIndexFast(X: Integer); -
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.