Type | Description | |||
ScrollBar as ScrollBarEnum | A ScrollBarEnum expression that specifies the scrollbar being clicked. | |||
ScrollPart as ScrollPartEnum | A ScrollPartEnum expression that indicates the part of the scroll being clicked. |
private void ScrollButtonClick(object sender,exontrol.EXFILEVIEWLib.ScrollBarEnum ScrollBar,exontrol.EXFILEVIEWLib.ScrollPartEnum ScrollPart) { } Private Sub ScrollButtonClick(ByVal sender As System.Object,ByVal ScrollBar As exontrol.EXFILEVIEWLib.ScrollBarEnum,ByVal ScrollPart As exontrol.EXFILEVIEWLib.ScrollPartEnum) Handles ScrollButtonClick End Sub |
private void ScrollButtonClick(object sender, AxEXFILEVIEWLib._IExFileViewEvents_ScrollButtonClickEvent e) { } void OnScrollButtonClick(long ScrollBar,long ScrollPart) { } void __fastcall ScrollButtonClick(TObject *Sender,Exfileviewlib_tlb::ScrollBarEnum ScrollBar,Exfileviewlib_tlb::ScrollPartEnum ScrollPart) { } procedure ScrollButtonClick(ASender: TObject; ScrollBar : ScrollBarEnum;ScrollPart : ScrollPartEnum); begin end; procedure ScrollButtonClick(sender: System.Object; e: AxEXFILEVIEWLib._IExFileViewEvents_ScrollButtonClickEvent); begin end; begin event ScrollButtonClick(long ScrollBar,long ScrollPart) end event ScrollButtonClick Private Sub ScrollButtonClick(ByVal sender As System.Object, ByVal e As AxEXFILEVIEWLib._IExFileViewEvents_ScrollButtonClickEvent) Handles ScrollButtonClick End Sub Private Sub ScrollButtonClick(ByVal ScrollBar As EXFILEVIEWLibCtl.ScrollBarEnum,ByVal ScrollPart As EXFILEVIEWLibCtl.ScrollPartEnum) End Sub Private Sub ScrollButtonClick(ByVal ScrollBar As Long,ByVal ScrollPart As Long) End Sub LPARAMETERS ScrollBar,ScrollPart PROCEDURE OnScrollButtonClick(oExFileView,ScrollBar,ScrollPart) RETURN |
<SCRIPT EVENT="ScrollButtonClick(ScrollBar,ScrollPart)" LANGUAGE="JScript"> </SCRIPT> <SCRIPT LANGUAGE="VBScript"> Function ScrollButtonClick(ScrollBar,ScrollPart) End Function </SCRIPT> Procedure OnComScrollButtonClick OLEScrollBarEnum llScrollBar OLEScrollPartEnum llScrollPart Forward Send OnComScrollButtonClick llScrollBar llScrollPart End_Procedure METHOD OCX_ScrollButtonClick(ScrollBar,ScrollPart) CLASS MainDialog RETURN NIL void onEvent_ScrollButtonClick(int _ScrollBar,int _ScrollPart) { } function ScrollButtonClick as v (ScrollBar as OLE::Exontrol.ExFileView.1::ScrollBarEnum,ScrollPart as OLE::Exontrol.ExFileView.1::ScrollPartEnum) end function function nativeObject_ScrollButtonClick(ScrollBar,ScrollPart) return |
The following VB sample displays the identifier of the scroll's button being clicked:
With ExFileView1 .BeginUpdate .ScrollPartVisible(exVScroll, exLeftB1Part Or exRightB1Part) = True .ScrollPartCaption(exVScroll, exLeftB1Part) = "<img></img>1" .ScrollPartCaption(exVScroll, exRightB1Part) = "<img></img>2" .EndUpdate End With
Private Sub ExFileView1_ScrollButtonClick(ByVal ScrollPart As EXEXFILEVIEWLibCtl.ScrollPartEnum) MsgBox (ScrollPart) End Sub
The following VB.NET sample displays the identifier of the scroll's button being clicked:
With AxExFileView1 .BeginUpdate() .set_ScrollPartVisible(EXEXFILEVIEWLib.ScrollBarEnum.exVScroll, EXEXFILEVIEWLib.ScrollPartEnum.exLeftB1Part Or EXEXFILEVIEWLib.ScrollPartEnum.exRightB1Part, True) .set_ScrollPartCaption(EXEXFILEVIEWLib.ScrollBarEnum.exVScroll, EXEXFILEVIEWLib.ScrollPartEnum.exLeftB1Part, "<img></img>1") .set_ScrollPartCaption(EXEXFILEVIEWLib.ScrollBarEnum.exVScroll, EXEXFILEVIEWLib.ScrollPartEnum.exRightB1Part, "<img></img>2") .EndUpdate() End With
Private Sub AxExFileView1_ScrollButtonClick(ByVal sender As System.Object, ByVal e As AxEXEXFILEVIEWLib._IExFileViewEvents_ScrollButtonClickEvent) Handles AxExFileView1.ScrollButtonClick MessageBox.Show( e.scrollPart.ToString()) End Sub
The following C# sample displays the identifier of the scroll's button being clicked:
axExFileView1.BeginUpdate(); axExFileView1.set_ScrollPartVisible(EXEXFILEVIEWLib.ScrollBarEnum.exVScroll, EXEXFILEVIEWLib.ScrollPartEnum.exLeftB1Part | EXEXFILEVIEWLib.ScrollPartEnum.exRightB1Part, true); axExFileView1.set_ScrollPartCaption(EXEXFILEVIEWLib.ScrollBarEnum.exVScroll, EXEXFILEVIEWLib.ScrollPartEnum.exLeftB1Part , "<img></img>1"); axExFileView1.set_ScrollPartCaption(EXEXFILEVIEWLib.ScrollBarEnum.exVScroll, EXEXFILEVIEWLib.ScrollPartEnum.exRightB1Part, "<img></img>2"); axExFileView1.EndUpdate();
private void axExFileView1_ScrollButtonClick(object sender, AxEXEXFILEVIEWLib._IExFileViewEvents_ScrollButtonClickEvent e) { MessageBox.Show(e.scrollPart.ToString()); }
The following C++ sample displays the identifier of the scroll's button being clicked:
m_fileView.BeginUpdate(); m_fileView.SetScrollPartVisible( 0 /*exVScroll*/, 32768 /*exLeftB1Part*/ | 32 /*exRightB1Part*/, TRUE ); m_fileView.SetScrollPartCaption( 0 /*exVScroll*/, 32768 /*exLeftB1Part*/ , _T("<img></img>1") ); m_fileView.SetScrollPartCaption( 0 /*exVScroll*/, 32 /*exRightB1Part*/ , _T("<img></img>2") ); m_fileView.EndUpdate();
void OnScrollButtonClickExFileView1(long ScrollPart) { CString strFormat; strFormat.Format( _T("%i"), ScrollPart ); MessageBox( strFormat ); }
The following VFP sample displays the identifier of the scroll's button being clicked:
With thisform.ExFileView1 .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))