Type | Description | |||
Part as ScrollPartEnum | A ScrollPartEnum expression that specifies the parts of the scroll where the text is displated | |||
String | A String expression that specifies the caption being displayed on the part of the scroll bar. |
By default, the following parts are shown:
The following VB sample adds up and down additional buttons to the control's vertical scroll bar :
With ExplorerBar1 .BeginUpdate .ScrollPartVisible(exVScroll, exLeftB1Part Or exRightB1Part) = True .ScrollPartCaption(exVScroll, exLeftB1Part) = "<img></img>1" .ScrollPartCaption(exVScroll, exRightB1Part) = "<img></img>2" .EndUpdate End With
The following VB.NET sample adds up and down additional buttons to the control's vertical scroll bar :
With AxExplorerBar1 .BeginUpdate() .set_ScrollPartVisible(EXEXPLORERBARLib.ScrollBarEnum.exVScroll, EXEXPLORERBARLib.ScrollPartEnum.exLeftB1Part Or EXEXPLORERBARLib.ScrollPartEnum.exRightB1Part, True) .set_ScrollPartCaption(EXEXPLORERBARLib.ScrollBarEnum.exVScroll, EXEXPLORERBARLib.ScrollPartEnum.exLeftB1Part, "<img></img>1") .set_ScrollPartCaption(EXEXPLORERBARLib.ScrollBarEnum.exVScroll, EXEXPLORERBARLib.ScrollPartEnum.exRightB1Part, "<img></img>2") .EndUpdate() End With
The following C# sample adds up and down additional buttons to the control's vertical scroll bar :
axExplorerBar1.BeginUpdate(); axExplorerBar1.set_ScrollPartVisible(EXEXPLORERBARLib.ScrollBarEnum.exVScroll, EXEXPLORERBARLib.ScrollPartEnum.exLeftB1Part | EXEXPLORERBARLib.ScrollPartEnum.exRightB1Part, true); axExplorerBar1.set_ScrollPartCaption(EXEXPLORERBARLib.ScrollBarEnum.exVScroll, EXEXPLORERBARLib.ScrollPartEnum.exLeftB1Part , "<img></img>1"); axExplorerBar1.set_ScrollPartCaption(EXEXPLORERBARLib.ScrollBarEnum.exVScroll, EXEXPLORERBARLib.ScrollPartEnum.exRightB1Part, "<img></img>2"); axExplorerBar1.EndUpdate();
The following C++ sample adds up and down additional buttons to the control's vertical scroll bar :
m_explorerbar.BeginUpdate(); m_explorerbar.SetScrollPartVisible( 0 /*exVScroll*/, 32768 /*exLeftB1Part*/ | 32 /*exRightB1Part*/, TRUE ); m_explorerbar.SetScrollPartCaption( 0 /*exVScroll*/, 32768 /*exLeftB1Part*/ , _T("<img></img>1") ); m_explorerbar.SetScrollPartCaption( 0 /*exVScroll*/, 32 /*exRightB1Part*/ , _T("<img></img>2") ); m_explorerbar.EndUpdate();
The following VFP sample adds up and down additional buttons to the control's vertical scroll bar :
With thisform.ExplorerBar1 .BeginUpdate .ScrollPartVisible(0, bitor(32768,32)) = .t. .ScrollPartCaption(0,32768) = "<img></img>1" .ScrollPartCaption(0, 32) = "<img></img>2" .EndUpdate EndWith
*** ActiveX Control Event *** LPARAMETERS scrollpart wait window nowait ltrim(str(scrollpart))