ShowCacheDialog Method

Summary
Shows the specified property dialog for the caching filter.
Syntax
C#
C++/CLI
public void ShowCacheDialog( 
   TargetFormatDlg Dialog, 
   IWin32Window hWnd 
) 
public: 
void ShowCacheDialog(  
   TargetFormatDlg Dialog, 
   IWin32Window^ hWnd 
)  

Parameters

Dialog
Value that specifies which dialog to display. Must be one of the TargetFormatDlg enumeration values.

hWnd
Value that specifies the dialog owner's window handle.

Remarks

Use the TargetFormat.UseFilterCache property to get a value that indicates whether the toolkit is currently caching filters; or set a value that indicates whether to enable or disable the caching of filters. Use the TargetFormat.GetCacheObject method to retrieve the caching filter object. Use the TargetFormat.HasCacheDialog method to query whether the specified property dialog for the caching filter is available.

Example
C#
using Leadtools; 
using Leadtools.Multimedia; 
using LeadtoolsMultimediaExamples.Fixtures; 
 
 
public bool _result = false; 
public CaptureCtrlForm _form = new CaptureCtrlForm(); 
 
public void HasCacheDialogExample() 
{ 
   // reference the capture control 
   CaptureCtrl capturectrl = _form.CaptureCtrl; 
 
   try 
   { 
      // reference the MPEG2Transport target format from the collection of the target formats 
      TargetFormat fmt = capturectrl.TargetFormats.MPEG2Transport; 
 
      // set the MPEG2Transport target format to use filter cache 
      fmt.UseFilterCache = true; 
 
      // check to see if the format has a multiplexer dialog for settings  
      if (fmt.HasCacheDialog(TargetFormatDlg.Mux)) 
      { 
         // show the dialog 
         fmt.ShowCacheDialog(TargetFormatDlg.Mux, _form); 
 
         // set the result 
         _result = true; 
      } 
   } 
   catch (Exception) 
   { 
      _result = false; 
   } 
} 
Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Multimedia Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.