General Discussions
how to use UserLogonDialog

I want to use a button to pop up the dialog box for user login. I read the manual to use UserLogonDialog, but it failed to test successfully. Can you give me a sample, thank you

I want to use a button to pop up the dialog box for user login. I read the manual to use UserLogonDialog, but it failed to test successfully. Can you give me a sample, thank you
edited Oct 31 '21 at 2:26 pm

The function must be called from a script and then the code must wait for the return value becoming invalid, e.g.

...
[
  WaitObj;
]
...

Init [
  { When triggered display the logon dialog }
  If Trigger Wait;
  [
    WaitObj = SecurityManager\UserLogonDialog(Invalid, Invalid, TRUE, FALSE);
  ]
]

Wait [
  If !Valid(WaitObj);
  [
    { Do Something }
  ]
]
The function must be called from a script and then the code must wait for the return value becoming invalid, e.g. ```` ... [ WaitObj; ] ... Init [ { When triggered display the logon dialog } If Trigger Wait; [ WaitObj = SecurityManager\UserLogonDialog(Invalid, Invalid, TRUE, FALSE); ] ] Wait [ If !Valid(WaitObj); [ { Do Something } ] ] ````

Software Developer with Trihedral

74
1
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft