property Tree.FilterBarCaption as String
Specifies the filter bar's caption. /*not supported in the lite version*/

 TypeDescription 
   String A string expression that indicates the caption in the filter bar.  

Use the FilterBarCaption property to change the caption of the control's filter bar. Use the FilterBarForeColor and FilterBarBackColor properties to define the colors used to paint the description for control's filter. Use the FilterBarHeight property to specify the height of the control's filter bar window. If the FilterBarCaption property is empty, the control builds the filter bar's caption based on filtered columns. For instance, if the control filters items based on the columns "Name" and "Value", the control's filter bar caption could be like "[Name] = 'name' and [Value]  = 'value'". Use the Description property to define predefined strings in the filter bar caption. Use the FilterBarFont property to specify the font for the control's filter bar. Use the Add method to add new skins to the control.

The FilterBarCaption property supports HTML format as described here:

The following VB sample changes the visual appearance for the "close" button in the control's filter bar. The sample applies the skin "" to the "close" button in the control's filter bar:

With Tree1
    With .VisualAppearance
        .Add &H2, App.Path + "\fbarclose.ebn"
    End With
    .Background(exFooterFilterBarButton) = &H2000000
End With

The following C++ sample changes the visual appearance for the "close" button in the control's filter bar:

#include "Appearance.h"
m_tree.GetVisualAppearance().Add( 0x2, COleVariant(_T("D:\\Temp\\ExTree.Help\\fbarclose.ebn")) );
m_tree.SetBackground( 1 /*exFooterFilterBarButton*/, 0x2000000 );

The following VB.NET sample changes the visual appearance for the "close" button in the control's filter bar:

With AxTree1
    With .VisualAppearance
        .Add(&H2, "D:\Temp\ExTree.Help\fbarclose.ebn")
    End With
    .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:

axTree1.VisualAppearance.Add(0x2, "D:\\Temp\\ExTree.Help\\fbarclose.ebn");
axTree1.set_Background(EXTREELib.BackgroundPartEnum.exFooterFilterBarButton, 0x2000000);

The following VFP sample changes the visual appearance for the "close" button in the control's filter bar:

With thisform.Tree1
    With .VisualAppearance
        .Add(2, "D:\Temp\ExTree.Help\fbarclose.ebn")
    EndWith
    .Object.Background(1) = 33554432
EndWith

The 33554432 value is the 0x2000000 value in hexadecimal.


  

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