Ignore:
Timestamp:
May 7, 2020, 12:46:55 AM (5 years ago)
Author:
chronos
Message:
  • Added: New Global unit with global constants.
  • Modified: Multiple occurence of string constants used for subdirectories replaced by functions.
File:
1 edited

Legend:

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

    r174 r189  
    176176  // ButtonDownSound, ButtonUpSound: string;
    177177begin
    178   // ButtonDownSound:=Sounds.Lookup('BUTTON_DOWN');
    179   // ButtonUpSound:=Sounds.Lookup('BUTTON_UP');
     178  // ButtonDownSound := Sounds.Lookup('BUTTON_DOWN');
     179  // ButtonUpSound := Sounds.Lookup('BUTTON_UP');
    180180  for cix := 0 to ComponentCount - 1 do
    181181    if Components[cix] is TButtonBase then
    182182    begin
    183183      TButtonBase(Components[cix]).Graphic := GrExt[HGrSystem].Data;
    184       // if ButtonDownSound<>'*' then
    185       // DownSound:=HomeDir+'Sounds' + DirectorySeparator + ButtonDownSound + '.wav';
    186       // if ButtonUpSound<>'*' then
    187       // UpSound:=HomeDir+'Sounds' + DirectorySeparator + ButtonUpSound + '.wav';
     184      // if ButtonDownSound <> '*' then
     185      // DownSound := GetSoundsDir + DirectorySeparator + ButtonDownSound + '.wav';
     186      // if ButtonUpSound <> '*' then
     187      // UpSound := GetSoundsDir + DirectorySeparator + ButtonUpSound + '.wav';
    188188      if Components[cix] is TButtonA then
    189189        TButtonA(Components[cix]).Font := UniFont[ftButton];
Note: See TracChangeset for help on using the changeset viewer.