ALTADataSet.HideCalculationProgress: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
Line 14: Line 14:


== Usage Example ==
== Usage Example ==
 
This example demonstrates how to hide the calculation progress window.
{{APIComment|Declare the ALTAEvents.}}<br>
  {{APIComment|'Overrides requested, create a new class, inherit WeibullEvents, and set the dataset's events.}}
{{APIComment|Declare the ALTADataSet.}}<br>
  Private Class myEvents
{{APIComment|Note: The ALTADataSet constructor already creates a new ALTAEvents, which could be used in place of AEvents in the example below.}}<br>
      Inherits WeibullEvents
        Dim AEvents as New ALTAEvents
      Public Overrides Sub ShowCalculationProgress(sender As ALTADataSet)
        Dim ADS as New ALTADataSet
          MyBase.ShowCalculationProgress(sender)
 
          {{APIComment|'<Additional overridden code here.>}}
{{APIComment|Hide the current Calculation Progress.}}
      End Sub
        AEvents.HideCalculationProgress(ADS)
  End Class
 
  {{APIComment|'Set the new Events class.}}
  ADS.Events = New myEvents
 
  {{APIComment|'Show calculation progress.}}
  ADS.Events.ShowCalculationProgress(ADS)

Revision as of 22:18, 5 May 2014


Called when calculation progress should be hidden. Hides the calculation progress display.

Syntax

Parameters

sender: An ALTADataSet object.

Usage Example

This example demonstrates how to hide the calculation progress window.

  'Overrides requested, create a new class, inherit WeibullEvents, and set the dataset's events. 
 Private Class myEvents
     Inherits WeibullEvents
     Public Overrides Sub ShowCalculationProgress(sender As ALTADataSet)
         MyBase.ShowCalculationProgress(sender)
          '<Additional overridden code here.> 
     End Sub
 End Class
 
  'Set the new Events class. 
 ADS.Events = New myEvents
 
  'Show calculation progress. 
 ADS.Events.ShowCalculationProgress(ADS)