Jump to content

Recommended Posts

Posted

Hi.

In Login form:

ScreenMask->Target=UniLoginForm1

ScreenMask->WaitData=true

ScreenMask->Messsage=Wait

ScreenMask->ShowMessage=true

 

When I press button I see ScreenMask message Wait then Main form open. All fine.

Now I want when user fill password and press key Enter also see ScreenMask message Wait then Main form open.

When I try this code Main form open but no ScreenMask message Wait.

How to correctly do it?

Thanks.

void __fastcall TUniLoginForm1::UniEditPasswordKeyUp(TObject *Sender, WORD &Key, TShiftState Shift)
{
 if(Key == VK_RETURN)
  {
   UniBitBtnEnterClick(this);
  }
}
  • 1 month later...
  • Administrators
Posted

 

Hi

 

I use this:

  if (Key = VK_RETURN) then
    UniSession.AddJS(TestButton.JSName + '.fireEvent(''click'', this)');

 

It doesn't realyy solve the issue because if you have a lengthy operation after this code, mask will only be displayed after task is completed.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...