property ListBar.SelBackColorGroup as Color
Retrieves or sets a value that indicates the group's background color, if it's selected.

 TypeDescription 
   Color A color expression that indicates the selected group's background color. The last 7 bits in the high significant byte of the color to indicates the identifier of the skin being used. Use the Add method to add new 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 SelBackColorGroup property has effect only if MarkSelectGroup property is True.  Use the SelBackColorGroup and SelForeColorGroup properties to customize colors for selected group. Use the BackColor property to specify the group's background color. Use the BackColorList property to specify the background color for group's list. Use the BackColorGroup property to specify a default background color for groups.

For instance, the following VB sample changes the visual appearance for group headers. The BackColorGroup property indicates the indicates the default group's background color. Shortly, we need to add a skin to the Appearance object using the Add method, and we need to set the last 7 bits in the BackColorGroup property to indicates the index of the skin that we want to use. The sample applies the skin "".

With ListBar1
    .VisualAppearance.Add 1, "D:\Temp\ExListBar.Help\tabdown1.ebn"
    .BackColorGroup = &H1000000
End With

The following C++ sample changes the visual appearance for group headers:

#include "Appearance.h"
m_listbar.GetVisualAppearance().Add( 1, COleVariant( "D:\\Temp\\ExListBar.Help\\tabup1.ebn" ) );
m_listbar.SetBackColorGroup( 0x1000000 );

The following VB.NET sample changes the visual appearance for group headers:

With AxListBar1
    .VisualAppearance.Add(1, "D:\Temp\ExListBar.Help\tabup1.ebn")
    .Template = "BackColorGroup = 16777216"
End With

The following C# sample changes the visual appearance for group headers:

axListBar1.VisualAppearance.Add(1, "D:\\Temp\\ExListBar.Help\\tabup1.ebn");
axListBar1.Template = "BackColorGroup = 16777216";

The following VFP sample changes the visual appearance for group headers:

With thisform.ListBar1
    .VisualAppearance.Add(1, "D:\Temp\ExListBar.Help\tabup1.ebn")
    .BackColorGroup = 16777216
EndWith

where the 16777216 value represents 0x1000000 in hexadecimal.

 


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