ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Application update functions
  • Overview
  • Characteristics of window
  • Programming
  • Procedure associated with the custom window
  • Calling the custom window
  • Application shutdown
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Overview
To customize the remote control performed on a multi-user WINDEV application, the standard window can be replaced with a window from your application.
This window will be used:
  • to display the message indicating that the connection cannot be established,
  • to display the warning message,
  • to display the message for closing the application.
This window must respect some norms, both for display and programming.
Characteristics of window
The custom window must contain the following elements:
  • a control used to display the message to the users,
  • a procedure used to retrieve the parameters passed to the window (see the programming paragraph).
This window can contain any control, process, etc. custom.
Programming

Procedure associated with the custom window

A procedure must be declared in the global declaration of global variables of the window. Indeed, when this window is opened by the mechanism for remote control, the parameters passed to this window can be retrieved programmatically.
This window must be associated with a procedure of the following type:
PROCEDURE <Window Name>(<Mode>, <Message>, <Display Duration>)
where the parameters are as follows:
<Mode>Retrieves as constants the current mode for remote control:
  • acInterdict: forbidden access to the application
  • acWarning: warning of an imminent stop
  • acStop: application stop
<Message>Retrieves the message corresponding to the current mode (this message must be displayed in the window)
<Display duration>Maximum window display time (in seconds)
// Code de déclaration des globales de la fenêtre FEN_MessagePerso
PROCEDURE FEN_MessagePerso(ModeAccès, MessageAAfficher, TempsAff)
SWITCH ModeAccès
	CASE acForbidden : IMG_ChampIco.Image = "Interdit.BMP"
	CASE acWarning : IMG_ChampIco.Image = "Info.BMP"
	CASE acStop : IMG_ChampIco.Image = "Arrêt.BMP"
END
SAI_ChampMessage = MessageAAfficher

Calling the custom window

To use the custom window to automatically check your application, AppControl must be called in the initialization code of your project:
AppControl("U:\MonAppli\WDUPDATE.NET", FEN_MessagePerso)
where:
  • WIN_CustomMess is the name of the custom window,
  • "WDUPDATE.NET" is the control file of the application.
Tip: Calling the AppControl function must be the first instruction in the project initialization code.

Application shutdown

When using a custom window, the stop mode defined for the application (acStop constant) does not automatically stop the application. The call to EndProgram must be included in your application.
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help