../pvss.htm menu.gif basics.gif

LoginDialog()

The function is used by LogoutDialog() to start the login dialog.

Synopsis

LoginDialog(int closeModules, string loginModule, string picture);

Parameters

Parameters

Specification

Description

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 in use without closing open modules
Uses the module in use and closes open modules

loginModule

 

Name of the Login module ( for example, login.pnl)

picture

 

Name of the required logo (for example, WinCC_OA.gif)

Return value

None.

Description

The function opens the Login dialog. In this dialog, you can select an operating language from a combo box after entering the user name and 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.

IconExample

main()
{
   LoginDialog(0,"LOGIN",""); //open panel "LOGIN"

 }

Relates to

panel.ctl

Availability

UI, CTRL, DP

See also

      afterLogin(), LogoutDialog()

Top Of Page

 

V 3.11 SP1

Copyright ETM professional control GmbH 2013 All Rights Reserved