Ignore:
Timestamp:
Mar 27, 2024, 12:31:14 PM (8 months ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
Location:
trunk/Packages/CevoComponents
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/CevoComponents/ButtonA.pas

    r471 r531  
    1414    procedure SetCaption(Text: string);
    1515    procedure SetFont(const Font: TFont);
     16  protected
     17    procedure Paint; override;
     18  public
     19    property Font: TFont write SetFont;
    1620  published
    1721    property Visible;
    1822    property Caption: string read FCaption write SetCaption;
    1923    property OnClick;
    20   public
    21     property Font: TFont write SetFont;
    22   protected
    23     procedure Paint; override;
    2424  end;
    2525
  • trunk/Packages/CevoComponents/ButtonB.pas

    r471 r531  
    1414    FIndex: Integer;
    1515    procedure SetIndex(Text: Integer);
     16  protected
     17    procedure Paint; override;
    1618  public
    1719    property Mask: TBitmap read FMask write FMask;
     
    2022    property ButtonIndex: Integer read FIndex write SetIndex;
    2123    property OnClick;
    22   protected
    23     procedure Paint; override;
    2424  end;
    2525
  • trunk/Packages/CevoComponents/ButtonBase.pas

    r496 r531  
    140140// procedure TButtonBase.PlayDownSound;
    141141// begin
    142 // if DownSound<>'' then SndPlaySound(pchar(DownSound),SND_ASYNC)
     142// if DownSound<>'' then SndPlaySound(PChar(DownSound),SND_ASYNC)
    143143// end;
    144144
    145145// procedure TButtonBase.PlayUpSound;
    146146// begin
    147 // if UpSound<>'' then SndPlaySound(pchar(UpSound),SND_ASYNC)
     147// if UpSound<>'' then SndPlaySound(PChar(UpSound),SND_ASYNC)
    148148// end;
    149149
  • trunk/Packages/CevoComponents/ButtonC.pas

    r447 r531  
    1212    FIndex: Integer;
    1313    procedure SetIndex(Text: Integer);
     14  protected
     15    procedure Paint; override;
    1416  published
    1517    property Visible;
    1618    property ButtonIndex: Integer read FIndex write SetIndex;
    1719    property OnClick;
    18   protected
    19     procedure Paint; override;
    2020  end;
    2121
  • trunk/Packages/CevoComponents/ButtonN.pas

    r505 r531  
    2020    procedure SetIndex(X: Integer);
    2121    procedure SetSmartHint(X: string);
     22  protected
     23    procedure Paint; override;
     24    procedure MouseDown(Button: TMouseButton; Shift: TShiftState;
     25      X, Y: Integer); override;
    2226  published
    2327    property Possible: Boolean read FPossible write SetPossible;
     
    2933    property ButtonIndex: Integer read FIndex write SetIndex;
    3034    property OnClick: TNotifyEvent read ChangeProc write ChangeProc;
    31   protected
    32     procedure Paint; override;
    33     procedure MouseDown(Button: TMouseButton; Shift: TShiftState;
    34       X, Y: Integer); override;
    3535  end;
    3636
  • trunk/Packages/CevoComponents/DrawDlg.pas

    r527 r531  
    4343    procedure FormCreate(Sender: TObject);
    4444    procedure FormPaint(Sender: TObject);
    45   public
    46     MessgText: string;
    4745  protected
    4846    Lines: Integer;
     
    5048    procedure SplitText(Preview: Boolean);
    5149    procedure CorrectHeight;
     50  public
     51    MessgText: string;
    5252  end;
    5353
  • trunk/Packages/CevoComponents/EOTButton.pas

    r530 r531  
    1717  // EndOfTurn button
    1818  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;
    1926  public
    2027    constructor Create(aOwner: TComponent); override;
     
    2229    procedure SetButtonIndexFast(X: Integer);
    2330    procedure SetBack(Canvas: TCanvas; X, Y: Integer);
    24   private
    25     FTemplate: TBitmap;
    26     FIndex: Integer;
    27     procedure SetIndex(X: Integer);
    28   public
    2931    property Template: TBitmap read FTemplate write FTemplate;
    3032  published
     
    3234    property ButtonIndex: Integer read FIndex write SetIndex;
    3335    property OnClick;
    34   protected
    35     Buffer, Back: TBitmap;
    36     procedure Paint; override;
    3736  end;
    3837
  • trunk/Packages/CevoComponents/ScreenTools.pas

    r530 r531  
    10401040      else begin
    10411041        DstPtr.NextPixel;
    1042         continue;
     1042        Continue;
    10431043      end;
    10441044      if R = 0 then
  • trunk/Packages/CevoComponents/Sound.pas

    r447 r531  
    315315  Result := (WavFileName <> '') and (WavFileName[1] <> '[') and (WavFileName <> '*');
    316316  if Result then
    317     // SndPlaySound(pchar(GetSoundsDir + DirectorySeparator + WavFileName + '.wav'), SND_ASYNC)
     317    // SndPlaySound(PChar(GetSoundsDir + DirectorySeparator + WavFileName + '.wav'), SND_ASYNC)
    318318    PlaySound(GetSoundsDir + DirectorySeparator + WavFileName);
    319319end;
Note: See TracChangeset for help on using the changeset viewer.