Login

<< Click to Display Table of Contents >>

 

Login

Login([Mode], [PosX], [PosY], [WindowsShowLastCredentials])

Opens a dialog box for login (user authentication) in an application. The logged-in user remains in memory until another login or logout (when a user quits an application) is performed. This method's parameters, all optional, are the following:

Mode: A Boolean determining whether a message of confirmation or failure of this operation must be displayed. If this parameter is omitted, the message of confirmation or failure of this operation is not displayed. When a Screen is about to open (by using the OpenScreen method), this method checks if there is any security settings. If True, this Screen is only opened if the logged-in user has permissions. Otherwise, a login dialog box is opened

PosX: Indicates the position, in pixels, of the dialog box relative to the left margin of the window. If this parameter is omitted, the respective dialog box's coordinate is centered on the window

PosY: Indicates the position, in pixels, of the dialog box relative to the top margin of the window. If this parameter is omitted, the respective dialog box's coordinate is centered on the window

WindowShowLastCredentials: A Boolean indicating whether, when selecting a Windows authentication, the user and password fields are filled with the user currently logged in Windows. If this parameter is omitted, the user and password fields are filled

 

NOTE

If the PosX and PosY parameters are both omitted, the dialog box is centered on the window.

Was this page useful?