is there a way to replace the “login failed” message when a user that is not a member of the “required client roles” logs ?
for example, show a message box “You are not allowed to login because not an operator” and abort the login process ?
I agree with grietveld above. One other way to do this would be a little more in depth but would give you the customization your looking for, see below.
Create a second project on the gateway and call it “login” or something similar
Set project properties to auto login.
Create a individual Main screen in the new project for your login screen
On login screen “login” button, check user/password to insure role and permission, if user permitted swap to your main project and supply user name and password, if not permitted handle it as you want.
In main screen set project properties to auto login
Create client script to run at project open to accept user and password passed in from Login Project to swap the user in as correct user