Jump to content

How to call web component function from delphi code


Dudi Heryadi

Recommended Posts

Dear All,

 

I'm sorry for asking this basic question since I'm not so familiar with Ext JS.

 

How to call web component method from delphi code? I need to know the actual position of a draggable component. Currently I get the position if the component move by using ClientEvents.ExtEvents.move

 

function move(sender, x, y, eOpts)
{
   ajaxRequest(sender,'Move',['X='+MainForm.CompA.getPosition(true)[0],'Y='+MainForm.CompA.getPosition(true)[1]]);
}
 
But I need to know the position anytime, so how is the method to call "MainForm.CompA.getPosition(true)[0]" from delphi code?
 
I also need to know how to use JSControl method of type TExtFunction like CompA.JSControl.GetPosition.
 
Thank you.
 
Regards
 
Dudi Heryadi
Link to comment
Share on other sites

Hi Delphi Developer,

 

I am creating an application that utilizing draggable & resizable UniPanel. Once the position and size of the unipanel is fixed, I replace the unipanel with another component at the same position. To do that I need to know the actual position and size of the unipanel. I can't use unipanel.left or unipanel.top, since the content is not represent the actual position of the unipanel on web browser.

 

Regards

 

Dudi Heryadi

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...