property Chart.SelBarColor as Color
Retrieves or sets a value that indicates the color or EBN object to display the selected bars.

 TypeDescription 
   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.  
By default, the SelBarColor property is 0. If the SelBarColor property is 0, the default frame is shown around the selected bars as shown in the following screen shot. Use the SelBarColor property to specify a different color or EBN object to display the selected bars. The SelForeColor property retrieves or sets a value that indicates the selection foreground color. The SelLinkColor property specifies the color to show the selected link ( or for rectangular links an EBN object to highlights the link, without changing the link's color ). The SelBackColor property indicates the visual appearance for the item's background on the chart area. 

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

Send comments on this topic.
1999-2017 Exontrol.COM, Software. All rights reserved.