|Color||A Color expression that specifies the color for selected bars or the EBN object to show the selected bar. If a color expression is used, the chart displays the bars using a different color as it would be specify using the ItemBar(exBarColor) property. If the color refers an EBN object it is displayed over the selected bars. You can use the CP option ( COPY option ) of the EBN objects to enlarge the EBN object being displayed on the selected bars. Use the Add method to add new EBN/skins to the control. If you need to remove the skin appearance from a part of the control you need to reset the last 7 bits in the high significant byte of the color being applied to the background's part.|
The following screen shot shows the selected bars (2 and 4) when SelBarColor property is 0 ( by default )
The following screen shot shows the selected bars (2 and 4) when SelBarColor property is RGB(255,0,0) ( red )
The following screen shot shows the selected bars (2 and 4) when SelBarColor property is 0x5000000 and using this EBN file.
The following VB sample assign a different EBN object to display the selected bars:
With G2antt1 .BeginUpdate With .VisualAppearance .Add 4, "select.ebn" .Add 5, "CP:4 -4 -3 3 2" End With .Chart.SelBarColor = &H5000000 .EndUpdate End With