bilcan Posted January 10, 2017 Posted January 10, 2017 Hi, I tried this code to catch mousemove on TuniPanel's extevents but it did not triggered onajaxevent. function mousemove(sender, x, y, eOpts) { ajaxRequest(sender, 'MouseMoveEvent', [ 'param0='+X, 'param1='+Y ]); } Quote
Sherzod Posted January 10, 2017 Posted January 10, 2017 function mousemove(sender, x, y, eOpts) { ajaxRequest(sender, 'MouseMoveEvent', [ 'param0='+X, 'param1='+Y ]); } ajaxRequest(sender, 'MouseMoveEvent', [ 'param0='+X, 'param1='+Y ]); Correct: ajaxRequest(sender, 'MouseMoveEvent', [ 'param0='+x, 'param1='+y]); "All" are case sensitive Quote
bilcan Posted January 10, 2017 Author Posted January 10, 2017 ajaxRequest(sender, 'MouseMoveEvent', [ 'param0='+X, 'param1='+Y ]); Correct: ajaxRequest(sender, 'MouseMoveEvent', [ 'param0='+x, 'param1='+y]); "All" are case sensitive Thank you, it works. but it does not cath events when left mouse is clicking ? Quote
Administrators Farshad Mohajeri Posted January 10, 2017 Administrators Posted January 10, 2017 Catching mouse events on server side is a very bad method. It generates too many events per second which is not possible to track on server. Please forget VCL programming habits and try adopting web programming. 1 Quote
bilcan Posted January 10, 2017 Author Posted January 10, 2017 Catching mouse events on server side is a very bad method. It generates too many events per second which is not possible to track on server. Please forget VCL programming habits and try adopting web programming. Hi, thank you but I need to drag and drop a control, what is the best way to do it? I saw drag demo but it is does not meet my requests. Quote
Sherzod Posted January 10, 2017 Posted January 10, 2017 thank you but I need to drag and drop a control, what is the best way to do it? I saw drag demo but it is does not meet my requests. What are your requests ?! Quote
bilcan Posted January 10, 2017 Author Posted January 10, 2017 What are your requests ?! Hi, first of all I want to start dragging manually, I changed dragmode and tried begindrag and enddrag but no luck. Second, I need to know control's position on the parent control any time I want. Quote
gerhardhziegler Posted June 2, 2017 Posted June 2, 2017 +1I need to drag a row out of a TUniDBTreeGrid and drop it to one Tab of a TUniTabControl. Also I would need an Ajax Solution for D&D inside of TUniDBTreeGrid (I know it should be possible).Greetings! 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.