ShowProperties
Top  Previous  Next

Description

Displays ActiveGige property pages in runtime mode.


Syntax


[VB]
objActiveGige.ShowProperties [ EnableCamList, Page ]

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



Parameters

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. Default value - TRUE.  
iPage [in]  
The 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 Analog page  
   4 - the Input/Output 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()
ActiveGige1.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 ActiveGige objects configured for different cameras. See PropertyPages for more information.