Type | Description | |||
Color | A color expression that defines the background color for description of the control's filter. 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. |
Use the FilterBarForeColor and FilterBarBackColor properties to define the colors used to paint the description for control's filter. Use the FilterBarHeight property to hide the control's filter bar header. Use the BackColor property to specify the control's background color.
The following VB sample changes the visual appearance for control's filter bar. The sample applies the skin "" to the "close" button in the control's filter bar, and the "" skin to the filter bar caption area:
With Pivot1 With .VisualAppearance .Add &H2, App.Path + "\fbarclose.ebn" .Add &H12, App.Path + "\filterbar.ebn" End With .Background(exFooterFilterBarButton) = &H2000000 .FilterBarBackColor = &H12000000 .FilterBarForeColor = RGB(255, 255, 255) End With
The following C++ sample changes the visual appearance for the "close" button in the control's filter bar:
#include "Appearance.h" m_pivot.GetVisualAppearance().Add( 0x2, COleVariant(_T("D:\\Temp\\ExPivot.Help\\fbarclose.ebn")) ); m_pivot.GetVisualAppearance().Add( 0x12, COleVariant(_T("D:\\Temp\\ExPivot.Help\\filterbar.ebn")) ); m_pivot.SetBackground( 1 /*exFooterFilterBarButton*/, 0x2000000 ); m_pivot.SetFilterBarBackColor( 0x12000000 ); m_pivot.SetFilterBarForeColor( RGB(255,255,255) );
The following VB.NET sample changes the visual appearance for the "close" button in the control's filter bar:
With AxPivot1 With .VisualAppearance .Add(&H2, "D:\Temp\ExPivot.Help\fbarclose.ebn") .Add(&H12, "D:\Temp\ExPivot.Help\filterbar.ebn") End With .Template = "FilterBarBackColor = 301989888" .FilterBarForeColor = Color.White .set_Background(EXTREELib.BackgroundPartEnum.exFooterFilterBarButton, &H2000000) End With
The following C# sample changes the visual appearance for the "close" button in the control's filter bar:
axPivot1.VisualAppearance.Add(0x2, "D:\\Temp\\ExPivot.Help\\fbarclose.ebn"); axPivot1.VisualAppearance.Add(0x12, "D:\\Temp\\ExPivot.Help\\filterbar.ebn"); axPivot1.set_Background(EXTREELib.BackgroundPartEnum.exFooterFilterBarButton, 0x2000000); axPivot1.Template = "FilterBarBackColor = 301989888"; axPivot1.FilterBarForeColor = Color.White;
The following VFP sample changes the visual appearance for the "close" button in the control's filter bar:
With thisform.Pivot1 With .VisualAppearance .Add(2, "D:\Temp\ExPivot.Help\fbarclose.ebn") .Add(18, "D:\Temp\ExPivot.Help\filterbar.ebn") EndWith .Object.Background(1) = 33554432 .FilterBarBackColor = 301989888 .FilterBarForeColor = RGB(255,255,255) EndWith
The 301989888 value is the 0x12000000 value in hexadecimal.