Z-Clive / aforge

Automatically exported from code.google.com/p/aforge
Other
0 stars 0 forks source link

DisplayPropertyPage only works for one video device #99

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Checkout the Two Camera Test
2. Add a button labeled configure for each camera
3. In the MouseClick handler add in a line similar to the following:
{{{
Camera1.DisplayPropertyPage(Handle);
}}}

What is the expected output?
One of the two buttons will display a property page. One will do nothing. 

What do you see instead?
I expect them both to display a property page.

Original issue reported on code.google.com by ekar...@gmail.com on 10 Jun 2009 at 10:33

GoogleCodeExporter commented 9 years ago

Original comment by andrew.k...@gmail.com on 11 Jun 2009 at 8:20

GoogleCodeExporter commented 9 years ago

Original comment by andrew.k...@gmail.com on 18 Aug 2009 at 2:16

GoogleCodeExporter commented 9 years ago

Original comment by andrew.k...@gmail.com on 18 Aug 2009 at 2:16

GoogleCodeExporter commented 9 years ago
Was unable to reproduce with different combinations of camera. I tried showing 
property pages for 2 identical cameras of the same model - works fine. Also 
tried 
showing property pages for 2 different cameras - works fine. In both cases two 
pages 
are displayed simultaniosly.

Here is my code:
private void button1_Click( object sender, EventArgs e )
{
    VideoCaptureDevice videoSource = (VideoCaptureDevice) 
videoSourcePlayer1.VideoSource;
    videoSource.DisplayPropertyPage( IntPtr.Zero );

}

private void button2_Click( object sender, EventArgs e )
{
    VideoCaptureDevice videoSource = (VideoCaptureDevice) 
videoSourcePlayer2.VideoSource;
    videoSource.DisplayPropertyPage( IntPtr.Zero );
}

One thing to note! You need to pass IntPtr.Zero to DisplayPropertyPage() in 
order to 
get both pages. If you pass your form's handle (this.Handle), the property page 
will 
become modal dialog and you will be unable to click any buttons on your form to 
show 
another property page. Will update documentation.

Original comment by andrew.k...@gmail.com on 4 Sep 2009 at 10:02

GoogleCodeExporter commented 9 years ago
If the above note does not help, then it may be something wrong with camera's 
drivers.

Original comment by andrew.k...@gmail.com on 4 Sep 2009 at 10:07

GoogleCodeExporter commented 9 years ago

Original comment by andrew.k...@gmail.com on 19 Sep 2009 at 7:12