Mediv Posted March 22, 2012 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. Quote
Administrators Farshad Mohajeri Posted March 22, 2012 Administrators 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. Quote
Administrators Farshad Mohajeri Posted March 22, 2012 Administrators Posted March 22, 2012 See UIMask-Client demo. Quote
Mediv Posted March 22, 2012 Author 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. Quote
Administrators Farshad Mohajeri Posted March 22, 2012 Administrators 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. Quote
cristianotestai Posted March 22, 2012 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.