To use the filter interfaces within a Delphi project you have to setup your Borland Delphi or Borland Delphi 2005 enviroment to use with the MontiVision Development Kit.
1.Step
Add the MontiVision Smart control from the toolbar into your application.
![]()
A second way to use the MontiVision ActiveX Controls in your application is to import the ActiveX control..
Create your application framework with the new project dialog. Select the "Import ActiveX Control" command from the "Components" menu.
![]()
Select the MV Smart Control Type library and press the "Install..."-button.
![]()
Now Delphi imports the MV Smart Control. The control is visible in the ActiveX pane from the component bar.
![]()
2. Step
Insert the control into your application form.
![]()
3. Step
To get the MV Smart Control interfaces you have to add a variable for the interface and call the QueryInterface method from the control interface. Do not use the MV Smart Control interfaces in the FormCreate method. At that moment the MV Smart Control isn't completely initialised.
![]()
4. Step
To handle events from the MV Smart Control select the control object in the Object Inspector window and insert an event handler with a double click on an events right column.
![]()
See Also