ShowProperties
Top  Previous  Next

Description

Displays ActiveDcam property pages in runtime mode.


Syntax


[VB]
objActiveDcam.ShowProperties [ EnableCamList, Page ]

[C/C++]
HRESULT ShowProperties( bool bEnableCamList, short iPage );



Data Types
[VB]

EnableCamList: Boolean  
Page: Integer  

Parameters
[C/C++]

bEnableCamList [in]  
Set to TRUE to enable the camera selection box in the Source property page, or set to FALSE to disable it  
Page [in]  
Index of the property page to be activated. Use one of the following values to activate a specific property page:  
   0 or omitted - the property page which was active last time the property pages were used  
   1 - the Source page  
   2 - the Format page  
   3 - the Exposure page  
   4 - the Color page  
   5 - the Advanced page  
   6 - the Display page  


Return Values


S_OK  
Success  
E_FAIL  
Failure  


Example


This VB example demonstrates how to display the property pages in runtime mode.

Private Sub
Properties_Click()
ActiveDcam1.ShowProperties False

End Sub



Remarks


Setting the EnableCamList parameter to False allows you to disable the camera selection box in the Source property page thus preventing a user from switching to another camera. This is a recommended scenario in case your application uses several ActiveDcam objects configured for different cameras. See PropertyPages for more information.