bilcan Posted January 10, 2017 Share 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 Link to comment Share on other sites More sharing options...
Sherzod Posted January 10, 2017 Share 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 Link to comment Share on other sites More sharing options...
bilcan Posted January 10, 2017 Author Share 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 Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted January 10, 2017 Administrators Share 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 Link to comment Share on other sites More sharing options...
bilcan Posted January 10, 2017 Author Share 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 Link to comment Share on other sites More sharing options...
Sherzod Posted January 10, 2017 Share 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 Link to comment Share on other sites More sharing options...
bilcan Posted January 10, 2017 Author Share 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 Link to comment Share on other sites More sharing options...
gerhardhziegler Posted June 2, 2017 Share 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 Link to comment Share on other sites More sharing options...
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.