Mediv Posted March 22, 2012 Share Posted March 22, 2012 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 More sharing options...
Administrators Farshad Mohajeri Posted March 22, 2012 Administrators Share Posted March 22, 2012 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 More sharing options...
Administrators Farshad Mohajeri Posted March 22, 2012 Administrators Share Posted March 22, 2012 See UIMask-Client demo. Link to comment Share on other sites More sharing options...
Mediv Posted March 22, 2012 Author Share Posted March 22, 2012 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 More sharing options...
Administrators Farshad Mohajeri Posted March 22, 2012 Administrators Share Posted March 22, 2012 Sleep() is only used to simulate lengthy operation. For obvious reasons it is not possible to start and stop mask in server side code. Link to comment Share on other sites More sharing options...
cristianotestai Posted March 22, 2012 Share Posted March 22, 2012 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 More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now