MMTRMIX.INT 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. {========================================================================}
  2. {= (c) 1995-98 SwiftSoft Ronald Dittrich =}
  3. {========================================================================}
  4. {= All Rights Reserved =}
  5. {========================================================================}
  6. {= D 01099 Dresden = Tel.: +0351-8012255 =}
  7. {= Loewenstr.7a = info@swiftsoft.de =}
  8. {========================================================================}
  9. {= Actual versions on http://www.swiftsoft.de/mmtools.html =}
  10. {========================================================================}
  11. {= This code is for reference purposes only and may not be copied or =}
  12. {= distributed in any format electronic or otherwise except one copy =}
  13. {= for backup purposes. =}
  14. {= =}
  15. {= No Delphi Component Kit or Component individually or in a collection=}
  16. {= subclassed or otherwise from the code in this unit, or associated =}
  17. {= .pas, .dfm, .dcu, .asm or .obj files may be sold or distributed =}
  18. {= without express permission from SwiftSoft. =}
  19. {= =}
  20. {= For more licence informations please refer to the associated =}
  21. {= HelpFile. =}
  22. {========================================================================}
  23. {= $Date: 20.01.1998 - 18:00:00 $ =}
  24. {========================================================================}
  25. unit MMTrMix;
  26. {$I COMPILER.INC}
  27. interface
  28. uses
  29. SysUtils,
  30. Windows,
  31. Messages,
  32. Classes,
  33. Graphics,
  34. Controls,
  35. Forms,
  36. Dialogs,
  37. StdCtrls,
  38. ExtCtrls,
  39. Menus,
  40. MMObj,
  41. MMDIBCv,
  42. MMUtils,
  43. MMPanel,
  44. MMSlider,
  45. MMWheel,
  46. MMButton,
  47. MMLevel,
  48. MMLEDS;
  49. const
  50. defMaxVolume= 2*VOLUMEBASE;
  51. defVolume = VOLUMEBASE;
  52. defPanning = 0;
  53. defMuted = False;
  54. defTitle = 'untitled';
  55. type
  56. {-- TMMTrackMixPanel ------------------------------------------------------}
  57. TMMTrackMixPanel = class(TMMCustomPanel)
  58. public
  59. constructor Create(aOwner: TComponent);override;
  60. destructor Destroy; override;
  61. procedure ResetPeak;
  62. published
  63. property OnChange: TNotifyEvent read FOnChange write FOnChange;
  64. property Align;
  65. property Bevel;
  66. property PopupMenu;
  67. property TabOrder;
  68. property Color;
  69. property ParentColor;
  70. property Volume: Longint index 0 read FVolume write SetLongints;
  71. property Panning: Longint index 1 read FPanning write SetLongints;
  72. property Muted: Boolean index 0 read FMuted write SetBoolean;
  73. property Title: string read FTitle write SetTitle;
  74. property Peak: integer read FPeak write SetPeak;
  75. end;
  76. procedure DrawLevelBar(Sender: TObject; DIB: TMMDIBCanvas; R: TRect; aValue,aPeak: integer);
  77. implementation