| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 48019 | 2004-08-12 02:03:00 | Delphi 7 | Barnzy (6015) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 260746 | 2004-08-13 14:41:00 | Well done barnzy with 64MB your method would have the opendialog release enough memory before opening the mediaplayer. Delphi 7 must be dead slow with just 64MB | mikebartnz (21) | ||
| 260747 | 2004-08-13 14:42:00 | Thanks And the: uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, Menus, StdCtrls, MPlayer, ComCtrls, FileCtrl; I take it these are also generated automatically and you have the option to add more or delete some as required. |
Rob99 (151) | ||
| 260748 | 2004-08-13 15:07:00 | >Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, Menus, StdCtrls, MPlayer, ComCtrls, FileCtrl; These all units required by unit Music; . When they dropped the mediaplayer on the form Delphi automaticaly added the MPlayer unit to the uses clause of the unit. To delete a unit from the uses clause that Delphi has produced it is better to delete the object that uses it from the form. Yes you can add units to the uses but if the staements etc are only going to be use in the implementation section you are better off adding a uses clause just under implementation {$R *.dfm} |
mikebartnz (21) | ||
| 260749 | 2004-08-14 02:00:00 | I left in the autogenerated code for the benefit of those, like me, who are unsure of the placement of code in the unit, some of it may not be necessary but who am I to argue with a machine? ;-) As for my humble setup with only 64 meg ram, it's still thinking faster than me. Now, how about a volume control? we can implement a track bar and link it to???? And how about a playlist. The ListView component might work but it seems to overwrite the last entry which makes it as useless as a thing that's totally useless :~( Oh and thanx fur all the help, I might even start having fun soon! |
Barnzy (6015) | ||
| 260750 | 2004-08-14 07:03:00 | >we can implement a track bar and link it to???? You would be better off using a slider control. As to how you adjust the volume I have not done it but you might have to dig into the Windows API. A ListBox would be better than the ListView. |
mikebartnz (21) | ||
| 1 2 | |||||