PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Manages a progress bar while sending and receiving emails.
Note: The progress bar is displayed when sending or receiving emails as well as the files attached to the email.
Versions 20 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 20
iPhone/iPad This function is now available for the iPhone/iPad applications.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
iPhone/iPad This function is now available for the iPhone/iPad applications.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 22 and later
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
New in version 22
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Example
// Display the progress bar in the PROGBAR_EmailProgress control (Syntax 1)
EmailProgressBar(PROGBAR_EmailProgress)
...
// Cancel this progress bar
EmailProgressBar("")
WINDEVWindows Mobile
// The progress bar is managed by the ManageProgress procedure (Syntax 2)
EmailProgressBar(ManageProgress)
// Procedure
PROCÉDURE ManageProgress(TotalByte, TotalTransmitted)
Message("Transfer in progress: " + TotalTransmitted + " / " + TotalByte)
PROGBAR_EmailProgress = TotalTransmitted/TotalByte
WINDEVWindows Mobile
// The progress bar is managed by the EmailProgress event (Syntax 3)
EmailProgressBar("EmailProgress")

// -- Initialization code of window
Event(ManageBar, "*.*", "EmailProgress")
// -- Procedure
PROCÉDURE ManageBar(TotalByte, TotalTransmitted)
Trace("Transfer in progress: " + TotalTransmitted + " / " + TotalByte)
Syntax

Displaying the progress bar in a Progress Bar control Hide the details

EmailProgressBar(<Name of Progress Bar> [, <Frequency>])
<Name of Progress Bar>: Character string (with or without quotes)
Name of the Progress Bar control where the progress bar will be displayed. This control must exist in the current window.
If this parameter corresponds to an empty string (""), the current progress bar is canceled.
<Frequency>: Optional integer
Specifies the frequency for refreshing the progress bar (in bytes). The default frequency is set to 10.000 (the progress bar is refreshed every 10 KB).
Caution: this frequency is given for information only.

Managing the progress bar via a procedure Hide the details

EmailProgressBar(<Procedure Name> [, <Frequency>])
<Procedure Name>: Character string
Name of the WLanguage procedure that will manage the progress bar.
This procedure has the following format:
PROCEDURE <Procedure Name> (<Total>, <Progress>)
where:
  • <Total> is the number of bytes to transmit or to receive.
  • <Progress> is the number of bytes already transmitted or received.
These parameters can be used in the procedure at any time.
If this parameter corresponds to an empty string (""), the current progress bar is canceled.
<Frequency>: Optional integer
Specifies the frequency for refreshing the progress bar (in bytes). The default frequency is set to 10,000 (the procedure is called every 10 KB).
Caution: this frequency is given for information only.
WINDEVWindows Mobile

Managing the progress bar via an event Hide the details

EmailProgressBar(<Event Name> [, <Frequency>])
<Event Name>: Character string (with quotes)
Name of the event that will be run during the progress. This event must be processed by Event. In this case:
  • the wParam parameter (the 1st parameter of the event) will correspond to the amount of bytes to send
  • the lParam parameter (2nd parameter of the event) will correspond to the amount of bytes already sent.
    If this parameter corresponds to an empty string (""), the current progress bar is canceled.
<Frequency>: Optional integer
Specifies the frequency for refreshing the progress bar (in bytes). The default frequency is set to 10,000 (the event is triggered every 10 KB).
Caution: this frequency is given for information only.
Remarks
  • EmailProgressBar must be used before the other functions for reading and sending emails.
  • EmailProgressBar operates for the SMTP, POP3 and IMAP protocols only. This function is not available in Outlook.
Related Examples:
WD Mail Complete examples (WINDEV): WD Mail
[ + ] This application is an email client developed in WINDEV. It is based on the Email objects.
This email client is used to retrieve and send emails by using the POP, IMAP and SMTP protocols.
You have the ability to apply filters to the incoming emails.

The application can also be used to manage several email accounts. The writing of an email is based on the HTML edit control.
Components
WINDEVReports and Queries wd230com.dll
Windows Mobile wp230com.dll
Linux wd230com.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment