Type | Description | |||
ScrollBar as ScrollBarEnum | A ScrollBarEnum expression that specifies the scroll bar being clicked. | |||
ScrollPart as ScrollPartEnum | A ScrollPartEnum expression that indicates the part of the scroll being clicked. |
private void ScrollButtonClick(object sender,exontrol.EXGRIDLib.ScrollBarEnum ScrollBar,exontrol.EXGRIDLib.ScrollPartEnum ScrollPart) { } Private Sub ScrollButtonClick(ByVal sender As System.Object,ByVal ScrollBar As exontrol.EXGRIDLib.ScrollBarEnum,ByVal ScrollPart As exontrol.EXGRIDLib.ScrollPartEnum) Handles ScrollButtonClick End Sub |
private void ScrollButtonClick(object sender, AxEXGRIDLib._IGridEvents_ScrollButtonClickEvent e) { } void OnScrollButtonClick(long ScrollBar,long ScrollPart) { } void __fastcall ScrollButtonClick(TObject *Sender,Exgridlib_tlb::ScrollBarEnum ScrollBar,Exgridlib_tlb::ScrollPartEnum ScrollPart) { } procedure ScrollButtonClick(ASender: TObject; ScrollBar : ScrollBarEnum;ScrollPart : ScrollPartEnum); begin end; procedure ScrollButtonClick(sender: System.Object; e: AxEXGRIDLib._IGridEvents_ScrollButtonClickEvent); begin end; begin event ScrollButtonClick(long ScrollBar,long ScrollPart) end event ScrollButtonClick Private Sub ScrollButtonClick(ByVal sender As System.Object, ByVal e As AxEXGRIDLib._IGridEvents_ScrollButtonClickEvent) Handles ScrollButtonClick End Sub Private Sub ScrollButtonClick(ByVal ScrollBar As EXGRIDLibCtl.ScrollBarEnum,ByVal ScrollPart As EXGRIDLibCtl.ScrollPartEnum) End Sub Private Sub ScrollButtonClick(ByVal ScrollBar As Long,ByVal ScrollPart As Long) End Sub LPARAMETERS ScrollBar,ScrollPart PROCEDURE OnScrollButtonClick(oGrid,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.Grid.1::ScrollBarEnum,ScrollPart as OLE::Exontrol.Grid.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 Grid1 .BeginUpdate .ScrollBars = exDisableBoth .ScrollPartVisible(exVScroll, exLeftB1Part Or exRightB1Part) = True .ScrollPartCaption(exVScroll, exLeftB1Part) = "<img></img>1" .ScrollPartCaption(exVScroll, exRightB1Part) = "<img></img>2" .EndUpdate End With
Private Sub Grid1_ScrollButtonClick(ByVal ScrollPart As EXGRIDLibCtl.ScrollPartEnum) MsgBox (ScrollPart) End Sub
The following VB.NET sample displays the identifier of the scroll's button being clicked:
With AxGrid1 .BeginUpdate() .ScrollBars = EXGRIDLib.ScrollBarsEnum.exDisableBoth .set_ScrollPartVisible(EXGRIDLib.ScrollBarEnum.exVScroll, EXGRIDLib.ScrollPartEnum.exLeftB1Part Or EXGRIDLib.ScrollPartEnum.exRightB1Part, True) .set_ScrollPartCaption(EXGRIDLib.ScrollBarEnum.exVScroll, EXGRIDLib.ScrollPartEnum.exLeftB1Part, "<img></img>1") .set_ScrollPartCaption(EXGRIDLib.ScrollBarEnum.exVScroll, EXGRIDLib.ScrollPartEnum.exRightB1Part, "<img></img>2") .EndUpdate() End With
Private Sub AxGrid1_ScrollButtonClick(ByVal sender As System.Object, ByVal e As AxEXGRIDLib._IGridEvents_ScrollButtonClickEvent) Handles AxGrid1.ScrollButtonClick MessageBox.Show( e.scrollPart.ToString()) End Sub
The following C# sample displays the identifier of the scroll's button being clicked:
axGrid1.BeginUpdate(); axGrid1.ScrollBars = EXGRIDLib.ScrollBarsEnum.exDisableBoth; axGrid1.set_ScrollPartVisible(EXGRIDLib.ScrollBarEnum.exVScroll, EXGRIDLib.ScrollPartEnum.exLeftB1Part | EXGRIDLib.ScrollPartEnum.exRightB1Part, true); axGrid1.set_ScrollPartCaption(EXGRIDLib.ScrollBarEnum.exVScroll, EXGRIDLib.ScrollPartEnum.exLeftB1Part , "<img></img>1"); axGrid1.set_ScrollPartCaption(EXGRIDLib.ScrollBarEnum.exVScroll, EXGRIDLib.ScrollPartEnum.exRightB1Part, "<img></img>2"); axGrid1.EndUpdate();
private void axGrid1_ScrollButtonClick(object sender, AxEXGRIDLib._IGridEvents_ScrollButtonClickEvent e) { MessageBox.Show(e.scrollPart.ToString()); }
The following C++ sample displays the identifier of the scroll's button being clicked:
m_grid.BeginUpdate(); m_grid.SetScrollBars( 15 /*exDisableBoth*/ ); m_grid.SetScrollPartVisible( 0 /*exVScroll*/, 32768 /*exLeftB1Part*/ | 32 /*exRightB1Part*/, TRUE ); m_grid.SetScrollPartCaption( 0 /*exVScroll*/, 32768 /*exLeftB1Part*/ , _T("<img></img>1") ); m_grid.SetScrollPartCaption( 0 /*exVScroll*/, 32 /*exRightB1Part*/ , _T("<img></img>2") ); m_grid.EndUpdate();
void OnScrollButtonClickGrid1(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.Grid1 .BeginUpdate .ScrollBars = 15 .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))