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. The Background(exSelectNode) property indicates the selection 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 Background property to indicates the index of the skin that we want to use. The sample applies the "" to the selected item:
With Rollist1 With .VisualAppearance .Add &H22, App.Path + "\select.ebn" End With .SelBackColor = RGB(0,0,255) Or &H22000000 End With
The following C++ sample changes the visual appearance for the selected item:
#include "Appearance.h" m_xmlgrid.GetVisualAppearance().Add( 0x22, COleVariant(_T("D:\\Temp\\ExRollist.Help\\select.ebn")) ); m_xmlgrid.SetSelBackColor( RGB(0,0,255) | 0x22000000 );
The following VB.NET sample changes the visual appearance for the selected item:
With AxRollist1 With .VisualAppearance .Add(&H22, "D:\Temp\ExRollist.Help\select.ebn") End With .Template = "SelBackColor = 587137024" End With
where the 587137024 value is the hexa representation of 0x22FF0000
The following C# sample changes the visual appearance for the selected item:
axRollist1.VisualAppearance.Add(0x22, "d:\\temp\\ExRollist.Help\\select.ebn"); axRollist1.Template = "SelBackColor = 587137024";
where the 587137024 value is the hexa representation of 0x22FF0000.
The following VFP sample changes the visual appearance for the selected item:
With thisform.Rollist1 With .VisualAppearance .Add(34, "D:\Temp\ExRollist.Help\select.ebn") EndWith .SelBackColor = RGB(0,0,255) + 570425344 EndWith