Platform SDK: Performance Monitoring |
Retrieves or sets the color of the time bar, which is the vertical bar that moves across the graph to indicate the passage of each sampling interval when Chart View is selected. This is a read/write property.
Public Property TimeBarColor( ) as OLE_COLOR
TimeBarColor is a standard property that can be set to either a palette (RGB) color or a predefined system color. The default value of this property is vbRed, which equals RGB(255, 0, 0) and &HFF.
To set TimeBarColor to a palette (RGB) color value, either include the RGB function followed by an integer value for each of the color components (red, green, and blue), or specify the hexadecimal equivalent of the three color component values. For information on the RGB function and the values you can specify for the function, refer to the "Color Constants" and "RGB Function" sections of Visual Basic Help.
The valid range for an RGB color value is 0 to 16,777,215 (&HFFFFFF). The red, green, and blue components are each represented by a number between 0 and 255 (&HFF). If you are specifying a hexadecimal number, remember that the high byte in the range of RGB color values is 0. The lower 3 bytes, from the lowest-order byte to the highest-order, respectively determine the red, green, and blue component values.
To set TimeBarColor to a predefined system color, use a Visual Basic color constant. For information about these constants, refer to the "Color Constants" section of Visual Basic Help. The user defines the available system colors in the Control Panel—in the Appearance sheet of the Display Properties window.
The OLE_COLOR data type for the color of the time bar. The OLE_COLOR data type holds color information for controls and their containers to use.
Graph1.TimeBarColor=vbRed Graph1.TimeBarColor=RGB(255,255,0) Graph1.TimeBarColor=&HFF00FF Graph1.TimeBarColor=vbDesktop
Windows NT/2000: Requires Windows 2000.
Header: Smonctrl.odl.
System Monitor Automation Interface Overview, System Monitor Automation Interface Properties