RC-WinTrans Object Model Help |
ProgressView.ShowCancelButton |
Shows/Hides the Cancel button of the Progress dialog box. This setting only becomes effective after the "Start()" method is called.
Syntax: |
ShowCancelButton(Show As Boolean) |
Parameters: |
Show True: Cancel button is shown; False: Cancel button is not shown.
|
Example: | Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds&) Sub UseProgressBar() Dim Progress As ProgressView Dim i As Integer Set Progress = Application.Windows.ProgressView Call Progress.Start Call Progress.ShowCancelButton(True) Call Progress.SetInfoText("This is a test of the progress view.") Call Progress.SetTitle("Test") For i = 0 To 100 Call Progress.SetProgress(100, i) Call Sleep(50) If (Progress.IsCanceled) Then Exit For End If Next i Call Progress.End End Sub |
Remarks: | The Cancel button is visible and enabled by default.
|
See also: