Jump to content

Form inherited and ClientEvent.ExtEvents


Le Meur Guillaume

Recommended Posts

Hello,

 

it seems that, when we work see inherited forms, functions defined in the base form are not working in the derived form.

For exemple : we want to store Left, top, Height and width properties when user resize a form.

We relay informations with the function

Form.ClientEvent.ExtEvents / window.Move / 

function window.move(sender, x, y, eOpts)
{
  ajaxRequest(sender, 'resizeAndMove', ["width="+sender.width, "height="+sender.height, "x="+x, "y="+y]);
}
 
It's ok in the bas form, not the other.
Perhaps because such "resizeAndMove" function is not really defined in the derived form  ...

 

Does someone have already note such trouble ?

 

Regards

Link to comment
Share on other sites

Hi,

 

we are using the 1.0.2.1426 build.

 

but in fact, there is no problem :

It's because some other functions are defined in the inherited form. So the value of the property (TStringList kind) is erase but not merge.

If we add this function by code (OnCreate event), it's ok.

 

Sorry for this "fake news".

 

Regards

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