Type | Description | |||
Part as BackgroundPartEnum | A BackgroundPartEnum expression that indicates a part in the control. | |||
Color | A Color expression that indicates the background color for a specified part. 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 following VB sample changes the visual appearance for the selected item and for the item from the cursor. The sample uses the "" skin for the item from the cursor, and the "" skin for the selected item. Use the SelectItemType property to specify whether the control marks the selected item. The HighlightItemType property indicates whether the item from the cursor is highlighted.
ListBar1.SelectItemType = exSelectPush With ListBar1 .VisualAppearance.Add &H30, "D:\Temp\ExListBar.Help\select.ebn" .VisualAppearance.Add &H40, "D:\Temp\ExListBar.Help\highlight.ebn" .Background(exSelectItem) = &H30000000 .Background(exHightlightItem) = &H40000000 End With
The following C++ sample changes the visual appearance for the selected item and for the item from the cursor:
#include "Appearance.h" m_listbar.GetVisualAppearance().Add( 0x30, COleVariant( "D:\\Temp\\ExListBar.Help\\select.ebn" ) ); m_listbar.GetVisualAppearance().Add( 0x40, COleVariant( "D:\\Temp\\ExListBar.Help\\highlight.ebn" ) ); m_listbar.SetBackground( 4, 0x30000000 ); m_listbar.SetBackground( 5, 0x40000000 );
The following VB.NET sample changes the visual appearance for the selected item and for the item from the cursor:
With AxListBar1 .VisualAppearance.Add(&H30, "D:\Temp\ExListBar.Help\select.ebn") .VisualAppearance.Add(&H40, "D:\Temp\ExListBar.Help\highlight.ebn") .set_Background(EXLISTBARLib.BackgroundPartEnum.exSelectItem, &H30000000) .set_Background(EXLISTBARLib.BackgroundPartEnum.exHightlightItem, &H40000000) End With
The following C# sample changes the visual appearance for the selected item and for the item from the cursor:
axListBar1.VisualAppearance.Add(0x30, "D:\\Temp\\ExListBar.Help\\select.ebn"); axListBar1.VisualAppearance.Add(0x40, "D:\\Temp\\ExListBar.Help\\highlight.ebn"); axListBar1.set_Background(EXLISTBARLib.BackgroundPartEnum.exSelectItem, 0x30000000); axListBar1.set_Background(EXLISTBARLib.BackgroundPartEnum.exHightlightItem, 0x40000000);
The following VFP sample changes the visual appearance for the selected item and for the item from the cursor:
with thisform.ListBar1 .VisualAppearance.Add(48, "D:\Temp\ExListBar.Help\select.ebn") && 0x30 .VisualAppearance.Add(64, "D:\Temp\ExListBar.Help\highlight.ebn") && 0x40 .Background(4) = 805306368 && exSelectItem, 0x30000000 .Background(5) = 1073741824 && exHightlightItem, 0x40000000 endwith