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 appearance for the separator item. The sample uses the "" skin.
With ExMenu1 .VisualAppearance.Add 4, "D:\Temp\ExMenu.Help\separator.ebn" .Background(exSeparatorItem) = &H4000000 End With
The following C++ sample changes the appearance for the separator item:
#include "Appearance.h" m_menu.GetVisualAppearance().Add( 4, COleVariant( "D:\\Temp\\ExMenu.Help\\separator.ebn" ) ); m_menu.SetBackground( 0, 0x4000000 );
The following VB.NET sample changes the appearance for the separator item:
With AxExMenu1 .VisualAppearance.Add(4, "D:\Temp\ExMenu.Help\separator.ebn") .set_Background(EXMENULib.BackgroundPartEnum.exSeparatorItem, &H4000000) End With
The following C# sample changes the appearance for the separator item:
axExMenu1.VisualAppearance.Add(4, "D:\\Temp\\ExMenu.Help\\separator.ebn"); axExMenu1.set_Background(EXMENULib.BackgroundPartEnum.exSeparatorItem, 0x4000000);
The following VFP sample changes the appearance for the separator item:
with thisform.ExMenu1 .VisualAppearance.Add(4, "D:\Temp\ExMenu.Help\separator.ebn") .Background(0) = 67108864 endwith
where the 67108864 in hexa is 0x4000000