BackColor
Top  Previous  Next

Description

Returns or sets the background color of the control window.


Syntax


[VB]
objActiveGige.BackColor [= Color]


[C/C++]
HRESULT get_BackColor(OLE_COLOR& pColor);
HRESULT put_BackColor(OLE_COLOR Color);



Data Type
[VB]

RGB color


Parameters
[C/C++]

pColor [out,retval]  
Pointer to the current background color  
Color [in]  
The background color to be set  


Return Values


S_OK  
Success  
E_FAIL  
Failure.  

Example


This VB example sets the background color of the control to light gray:

ActiveGige1.BackColor = RGB (192, 192, 192)  

Remarks


When the control displays a live video, its background is only visible if the size of the video display in the horizontal or vertical dimension is less than the size of the control window.

BackColor is an ambient property, therefore its default value is defined by the color of the form on which the control resides. Changing the background color of the container application will cause an equivalent change in the BackColor property of ActiveGige.