Jump to content

RUN UniScreenMask


Mediv

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...