LogoutDialog()
The function is used to open the logout dialog and to go to a new login dialog.
Synopsis
LogoutDialog(bool question, int closeModules, string loginModule, string
picture);
Parameters
Parameters | Specification | Description |
---|---|---|
question | true/false | Opens dialogs with the message "really logout". |
closeModules |
0 1 2 3 |
Opens a new module for Login, without closing open modules Opens a new module for Login and closes open modules Uses the module used for login without closing open modules Uses the module used for login and closes open modules |
loginModule | Name of the module | |
picture | Name of the required gif logo (for example, winccoa.gif) |
Return value
None
Description
The function opens first a logout dialog and then the login dialog. In this dialog, you can select an operating language from a combo box after entering the user name and after pressing Enter.
Then a function afterLogin() will be called that resides in the CTRL Lib login.ctl. This lib can be defined in the project itself to allow opening its own modules after login. In the dialog (3rd parameter), you can display your own gif logo that must be located in the pictures directory.
If you want to use your own logo in the login dialog, first copy it to the project directory. Then enter your own parameter for the gif image in your login module, for example, the login.pnl with the panel attributes > On opening.
Example
The following example opens a logout dialog with a confirmation prompt.
main()
{
LogoutDialog(true,0,"PANEL1","");
}
Assignment
panel.ctl
Availability
UI