Type | Description | |||
Part as BackgroundPartEnum | A BackgroundPartEnum expression that indicates the part and the state whose visual appearance is changed. | |||
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. |
In the following samples, we have used the following skin file:
The following VB sample changes the visual appearance of the thumb, in the vertical scrollbar:
With ScrollBar1 .VisualAppearance.Add 1, "D:\Exontrol\ExScrollBar\sample\VB\Gauge\Vertical 2\thumb.ebn" .Background(exVSThumb) = &H1000000 End With
The following VB sample changes the visual appearance of the thumb ( when it is pressed ), in the vertical scrollbar:
With ScrollBar1 .VisualAppearance.Add 1, "D:\Exontrol\ExScrollBar\sample\VB\Gauge\Vertical 2\thumb.ebn" .Background(exVSThumbP) = &H1000000 End With
The following C++ sample changes the visual appearance of the thumb, in the vertical scrollbar:
m_scrollbar.GetVisualAppearance().Add( 1, COleVariant( _T("D:\\Exontrol\\ExScrollBar\\sample\\VB\\Gauge\\Vertical 2\\thumb.ebn") ) ); m_scrollbar.SetBackground( 260 /*exVSThumb*/, 0x01000000 );
The following C++ sample changes the visual appearance of the thumb ( when it is pressed ), in the vertical scrollbar:
m_scrollbar.GetVisualAppearance().Add( 1, COleVariant( _T("D:\\Exontrol\\ExScrollBar\\sample\\VB\\Gauge\\Vertical 2\\thumb.ebn") ) ); m_scrollbar.SetBackground( 261 /*exVSThumbP*/, 0x01000000 );
The following VB.NET sample changes the visual appearance of the thumb, in the vertical scrollbar:
With AxScrollBar1 .VisualAppearance.Add(1, "D:\Exontrol\ExScrollBar\sample\VB\Gauge\Vertical 2\thumb.ebn") .set_Background(EXSCROLLBARLib.BackgroundPartEnum.exVSThumb, &H1000000) End With
The following VB.NET sample changes the visual appearance of the thumb ( when it is pressed ), in the vertical scrollbar:
With AxScrollBar1 .VisualAppearance.Add(1, "D:\Exontrol\ExScrollBar\sample\VB\Gauge\Vertical 2\thumb.ebn") .set_Background(EXSCROLLBARLib.BackgroundPartEnum.exVSThumbP, &H1000000) End With
The following C# sample changes the visual appearance of the thumb, in the vertical scrollbar:
axScrollBar1.VisualAppearance.Add(1, "D:\\Exontrol\\ExScrollBar\\sample\\VB\\Gauge\\Vertical 2\\thumb.ebn"); axScrollBar1.set_Background(EXSCROLLBARLib.BackgroundPartEnum.exVSThumb, 0x1000000);
The following C# sample changes the visual appearance of the thumb ( when it is pressed ), in the vertical scrollbar:
axScrollBar1.VisualAppearance.Add(1, "D:\\Exontrol\\ExScrollBar\\sample\\VB\\Gauge\\Vertical 2\\thumb.ebn"); axScrollBar1.set_Background(EXSCROLLBARLib.BackgroundPartEnum.exVSThumbP, 0x1000000);
The following VFP sample changes the visual appearance of the thumb, in the vertical scrollbar:
with thisform.ScrollBar1 .VisualAppearance.Add(1, "D:\Exontrol\ExScrollBar\sample\VB\Gauge\Vertical 2\thumb.ebn") .Background(260) = 0x1000000 endwith
The following VFP sample changes the visual appearance of the thumb ( when it is pressed ), in the vertical scrollbar:
with thisform.ScrollBar1 .VisualAppearance.Add(1, "D:\Exontrol\ExScrollBar\sample\VB\Gauge\Vertical 2\thumb.ebn") .Background(261) = 0x1000000 endwith