erich.wanker Posted May 1, 2013 Posted May 1, 2013 hi how can i get the x and y values of a extevent into delphi? in MainForm.unipanel.clientEventOnMouseMove: function Onmousemove(sender, x, y) { ....... i search something like: procedure MainForm.unipanel.clientEventOnMouseMoveValueChange(Sender:Tobject); begin if unipanel.clientEvent.extevent.onmousemove.x > 500 then .... is there a way to get the values? thank you erich Quote
Oliver Morsch Posted May 2, 2013 Posted May 2, 2013 You can use "ajaxRequest(...)" in the javascript function "function Onmousemove(sender, x, y){...}" to send the values as parameter to the server and handle it there in delphi (see forum). But: The event Onmousemove you should handle in javascript, because there would be very much messages send to the server. Quote
cmj1498 Posted May 4, 2013 Posted May 4, 2013 put UniEdit on MainForm. put UniLabel on MainForm. in MainForm.unipanel.clientEventOnMouseMove function Onmousemove(sender, x, y, { MainForm.UniEdit.setValue(x); //set value to UniEdit MainForm.UniLabel.setText(y); //set value to UniLabel} Quote
Administrators Farshad Mohajeri Posted May 4, 2013 Administrators Posted May 4, 2013 Relaying all mouse move events to server is a very bad practice. Quote
Administrators Farshad Mohajeri Posted May 4, 2013 Administrators Posted May 4, 2013 But: The event Onmousemove you should handle in javascript, because there would be very much messages send to the server. Correct. 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.