Type | Description | |||
Panel as Panel | A Panel object where the Percent property has been changed. |
The following VB sample change the panel's caption according to the Percent value:
Private Sub StatusBar1_PercentChange(ByVal Panel As EXSTATUSBARLibCtl.IPanel) Panel.Text = Panel.Percent + "%" End Sub
The following VB.NET sample change the panel's caption according to the Percent value:
Private Sub AxStatusBar1_PercentChange(ByVal sender As System.Object, ByVal e As AxEXSTATUSBARLib._IStatusBarEvents_PercentChangeEvent) Handles AxStatusBar1.PercentChange With e.panel .Text = .Percent.ToString() + "%" End With End Sub
The following C# sample change the panel's caption according to the Percent value:
private void axStatusBar1_PercentChange(object sender, AxEXSTATUSBARLib._IStatusBarEvents_PercentChangeEvent e) { e.panel.Text = e.panel.Percent.ToString() + "%"; }
The following C++ sample change the panel's caption according to the Percent value:
void OnPercentChangeStatusbar1(LPDISPATCH Panel) { CPanel panel(Panel); panel.m_bAutoRelease = FALSE; CString strPercent; strPercent.Format( "%i%%", panel.GetPercent() ); panel.SetText( strPercent ); }
The following VFP sample change the panel's caption according to the Percent value:
*** ActiveX Control Event *** LPARAMETERS panel with panel .Text = LTrim(RTrim(.Percent)) + "%" endwithSyntax for PercentChange event, /NET version, on:
private void PercentChange(object sender,exontrol.EXSTATUSBARLib.Panel Panel) { } Private Sub PercentChange(ByVal sender As System.Object,ByVal Panel As exontrol.EXSTATUSBARLib.Panel) Handles PercentChange End Sub |
private void PercentChange(object sender, AxEXSTATUSBARLib._IStatusBarEvents_PercentChangeEvent e) { } void OnPercentChange(LPDISPATCH Panel) { } void __fastcall PercentChange(TObject *Sender,Exstatusbarlib_tlb::IPanel *Panel) { } procedure PercentChange(ASender: TObject; Panel : IPanel); begin end; procedure PercentChange(sender: System.Object; e: AxEXSTATUSBARLib._IStatusBarEvents_PercentChangeEvent); begin end; begin event PercentChange(oleobject Panel) end event PercentChange Private Sub PercentChange(ByVal sender As System.Object, ByVal e As AxEXSTATUSBARLib._IStatusBarEvents_PercentChangeEvent) Handles PercentChange End Sub Private Sub PercentChange(ByVal Panel As EXSTATUSBARLibCtl.IPanel) End Sub Private Sub PercentChange(ByVal Panel As Object) End Sub LPARAMETERS Panel PROCEDURE OnPercentChange(oStatusBar,Panel) RETURN |
<SCRIPT EVENT="PercentChange(Panel)" LANGUAGE="JScript"> </SCRIPT> <SCRIPT LANGUAGE="VBScript"> Function PercentChange(Panel) End Function </SCRIPT> Procedure OnComPercentChange Variant llPanel Forward Send OnComPercentChange llPanel End_Procedure METHOD OCX_PercentChange(Panel) CLASS MainDialog RETURN NIL void onEvent_PercentChange(COM _Panel) { } function PercentChange as v (Panel as OLE::Exontrol.StatusBar.1::IPanel) end function function nativeObject_PercentChange(Panel) return |