|
DXFReader Control - ReadStatus Event
Kadmos DXFReader ActiveX Control

DXFReader Control
ReadStatus Event
|
Description
|
Fired while a DXF file is being read.
|
|
Syntax
|
Private Sub DXFReader_ReadStatus(TotalBytes As Long, ProcessedBytes As Long)
|
|
Remarks
|
The ReadStatus event is fired while a DXF file is being read. This event lets you know how close to completion the operation is and may be used to display a progress bar or other status indicator.
The following code, inserted in the ReadStatus event, will show a progress bar during read:
If ProcessedBytes = 0 Then ProgressBar1.Visible = True ProgressBar1.Value = 0 ProgressBar1.Min = 0 ProgressBar1.Max = TotalBytes End If
ProgressBar1.Value = ProcessedBytes
If ProcessedEntities = TotalBytes Then ProgressBar1.Visible = False End If
The parameters for the ReadStatus event are described below:
| TotalBytes | A long integer that specifies the total number of bytes of the DXF file. | | ProcessedBytes | A long integer that specifies the number of bytes read. |
|
Copyright © 2008/2011 Kadmos.com - All rights reserved. Privacy Policy
|