Changeset 531 for trunk/Packages/CevoComponents
- Timestamp:
- Mar 27, 2024, 12:31:14 PM (8 months ago)
- Location:
- trunk/Packages/CevoComponents
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CevoComponents/ButtonA.pas
r471 r531 14 14 procedure SetCaption(Text: string); 15 15 procedure SetFont(const Font: TFont); 16 protected 17 procedure Paint; override; 18 public 19 property Font: TFont write SetFont; 16 20 published 17 21 property Visible; 18 22 property Caption: string read FCaption write SetCaption; 19 23 property OnClick; 20 public21 property Font: TFont write SetFont;22 protected23 procedure Paint; override;24 24 end; 25 25 -
trunk/Packages/CevoComponents/ButtonB.pas
r471 r531 14 14 FIndex: Integer; 15 15 procedure SetIndex(Text: Integer); 16 protected 17 procedure Paint; override; 16 18 public 17 19 property Mask: TBitmap read FMask write FMask; … … 20 22 property ButtonIndex: Integer read FIndex write SetIndex; 21 23 property OnClick; 22 protected23 procedure Paint; override;24 24 end; 25 25 -
trunk/Packages/CevoComponents/ButtonBase.pas
r496 r531 140 140 // procedure TButtonBase.PlayDownSound; 141 141 // begin 142 // if DownSound<>'' then SndPlaySound( pchar(DownSound),SND_ASYNC)142 // if DownSound<>'' then SndPlaySound(PChar(DownSound),SND_ASYNC) 143 143 // end; 144 144 145 145 // procedure TButtonBase.PlayUpSound; 146 146 // begin 147 // if UpSound<>'' then SndPlaySound( pchar(UpSound),SND_ASYNC)147 // if UpSound<>'' then SndPlaySound(PChar(UpSound),SND_ASYNC) 148 148 // end; 149 149 -
trunk/Packages/CevoComponents/ButtonC.pas
r447 r531 12 12 FIndex: Integer; 13 13 procedure SetIndex(Text: Integer); 14 protected 15 procedure Paint; override; 14 16 published 15 17 property Visible; 16 18 property ButtonIndex: Integer read FIndex write SetIndex; 17 19 property OnClick; 18 protected19 procedure Paint; override;20 20 end; 21 21 -
trunk/Packages/CevoComponents/ButtonN.pas
r505 r531 20 20 procedure SetIndex(X: Integer); 21 21 procedure SetSmartHint(X: string); 22 protected 23 procedure Paint; override; 24 procedure MouseDown(Button: TMouseButton; Shift: TShiftState; 25 X, Y: Integer); override; 22 26 published 23 27 property Possible: Boolean read FPossible write SetPossible; … … 29 33 property ButtonIndex: Integer read FIndex write SetIndex; 30 34 property OnClick: TNotifyEvent read ChangeProc write ChangeProc; 31 protected32 procedure Paint; override;33 procedure MouseDown(Button: TMouseButton; Shift: TShiftState;34 X, Y: Integer); override;35 35 end; 36 36 -
trunk/Packages/CevoComponents/DrawDlg.pas
r527 r531 43 43 procedure FormCreate(Sender: TObject); 44 44 procedure FormPaint(Sender: TObject); 45 public46 MessgText: string;47 45 protected 48 46 Lines: Integer; … … 50 48 procedure SplitText(Preview: Boolean); 51 49 procedure CorrectHeight; 50 public 51 MessgText: string; 52 52 end; 53 53 -
trunk/Packages/CevoComponents/EOTButton.pas
r530 r531 17 17 // EndOfTurn button 18 18 TEOTButton = class(TButtonBase) 19 private 20 FTemplate: TBitmap; 21 FIndex: Integer; 22 procedure SetIndex(X: Integer); 23 protected 24 Buffer, Back: TBitmap; 25 procedure Paint; override; 19 26 public 20 27 constructor Create(aOwner: TComponent); override; … … 22 29 procedure SetButtonIndexFast(X: Integer); 23 30 procedure SetBack(Canvas: TCanvas; X, Y: Integer); 24 private25 FTemplate: TBitmap;26 FIndex: Integer;27 procedure SetIndex(X: Integer);28 public29 31 property Template: TBitmap read FTemplate write FTemplate; 30 32 published … … 32 34 property ButtonIndex: Integer read FIndex write SetIndex; 33 35 property OnClick; 34 protected35 Buffer, Back: TBitmap;36 procedure Paint; override;37 36 end; 38 37 -
trunk/Packages/CevoComponents/ScreenTools.pas
r530 r531 1040 1040 else begin 1041 1041 DstPtr.NextPixel; 1042 continue;1042 Continue; 1043 1043 end; 1044 1044 if R = 0 then -
trunk/Packages/CevoComponents/Sound.pas
r447 r531 315 315 Result := (WavFileName <> '') and (WavFileName[1] <> '[') and (WavFileName <> '*'); 316 316 if Result then 317 // SndPlaySound( pchar(GetSoundsDir + DirectorySeparator + WavFileName + '.wav'), SND_ASYNC)317 // SndPlaySound(PChar(GetSoundsDir + DirectorySeparator + WavFileName + '.wav'), SND_ASYNC) 318 318 PlaySound(GetSoundsDir + DirectorySeparator + WavFileName); 319 319 end;
Note:
See TracChangeset
for help on using the changeset viewer.