Wave Audio -- adding a waveitem at design time

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

Wave Audio -- adding a waveitem at design time

Postby simonbuk » May 21st, 2011, 4:05 pm

How do you add a wav file as TWaveItem (in TWaveCollection) at design time? I done this dozens of times with other components (e.g. ImageLists) but I just can't work out how to do it with TWaveCollection, not even after scouring the documentation and working through the forum messages.

Simon
simonbuk
Member
Member
 
Posts: 3
Joined: May 21st, 2011, 3:59 pm

Re: Wave Audio -- adding a waveitem at design time

Postby simonbuk » May 21st, 2011, 5:44 pm

I don't have any problem with this in Delphi 7, so it must something to do with using Delphi 2010, or maybe the way it's set up on my system.
simonbuk
Member
Member
 
Posts: 3
Joined: May 21st, 2011, 3:59 pm

Re: Wave Audio -- adding a waveitem at design time

Postby Kambiz » May 21st, 2011, 6:01 pm

Please try this:

Code: Select all
NewItem := WaveCollection1.Waves.Add;
NewItem.Wave.LoadFromFile(FileName);
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm

Re: Wave Audio -- adding a waveitem at design time

Postby Kambiz » May 21st, 2011, 6:11 pm

Opps! Your question is about design time. I checked it out in Delphi 2010, and found nothing wrong.

  1. In the object inspector, select the Waves property and click eclipses in front of it to bring up the collection editor.
  2. Add a new wave item by clicking on the new item icon of the toolbar.
  3. Select the Wave property of new wave item, and click eclipses in front of it to show the wave property editor.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm

Re: Wave Audio -- adding a waveitem at design time

Postby simonbuk » May 22nd, 2011, 9:34 am

Problem solved -- mainly my fault. Thanks a lot.

Simon
simonbuk
Member
Member
 
Posts: 3
Joined: May 21st, 2011, 3:59 pm


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 1 guest