Jump to content

RUN UniScreenMask


Mediv
 Share

Recommended Posts

Hi all,

Can someone tell me how to run the Event

procedure TFrameSocProtect.StreetEditKeyDown (Sender: TObject; var Key: Word;

Shift: TShiftState);

begin

inherited;

if key = 13 then

begin

.... code

end;

 

end;

 

UniScreenMask run until the end of the code inside the begin ... end.

 

Thank you.

Link to comment
Share on other sites

  • Administrators

Hi all,

Can someone tell me how to run the Event

procedure TFrameSocProtect.StreetEditKeyDown (Sender: TObject; var Key: Word;

Shift: TShiftState);

begin

inherited;

if key = 13 then

begin

.... code

end;

 

end;

 

UniScreenMask run until the end of the code inside the begin ... end.

 

Thank you.

 

It is not possible on server side. Such functionality must be developed on client side.

Use client side OnKeyDown event.

Link to comment
Share on other sites

See UIMask-Client demo.

 

I can not use Sleep(...), because I do not know how many time code will run inside the Begin ... end.

 

Will there be future functionality that allows the mask to start and stop anywhere in your code?

UniScreenMask.run

....

UniScreenMask.stop.

 

Thank you.

Link to comment
Share on other sites

I can not use Sleep(...), because I do not know how many time code will run inside the Begin ... end.

 

Will there be future functionality that allows the mask to start and stop anywhere in your code?

UniScreenMask.run

....

UniScreenMask.stop.

 

Thank you.

 

As Farhad said, you must to use client side for this purpose..

 

Try with hideMask() and showMask(), example:

 

begin

if something then

UniSession.AddJS('MainModule.MyButton.hideMask();') //"stop" the mask

end

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...