[Component] Playing and storing WAV files in RVF

Demos, code samples. Only questions related to the existing topics are allowed here.
Post Reply
Sergey Tkachenko
Site Admin
Posts: 13388
Joined: Sat Aug 27, 2005 10:28 am
Contact:

[Component] Playing and storing WAV files in RVF

Post by Sergey Tkachenko » Tue Jul 11, 2006 8:26 pm

http://www.trichview.com/support/files/wavbutton.zip

This component shows how to store additional binary data together with components in RVF file.
In this example, we create the new component TWavButton inherited from TButton. It plays the specified WAV file on clicking. But the main feature of this component is an ability to store this WAV file, like components store their properties. This feature allows to distribute applications without WAV files.
If placed on form, this component can store WAV data assigned at design time. If inserted in TRichView, this component can store WAV data in RVF files.

--

A similar example: http://www.trichview.com/forums/viewtopic.php?t=72

Post Reply