Jump to content

how to get ExtEvent values into delphi?


erich.wanker

Recommended Posts

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

put UniEdit on MainForm.

put UniLabel on MainForm.

 

in MainForm.unipanel.clientEventOnMouseMove

function Onmousemove(sender, x, y, B)
{
  MainForm.UniEdit.setValue(x); //set value to UniEdit
  MainForm.UniLabel.setText(y); //set value to UniLabel
}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...