Jump to content

Recommended Posts

Posted

Hello!

Anyone knows if its possible to execute a Trigger 's click  event of a TUniEdit on RunTime.

I have this function that receives a TUniEdit and depending on some validations i have to execute a trigger button click event (I have two triggers on each TUniEdit)

Thanks you in advance!!

Posted
54 minutes ago, Victor Dominguez said:

Anyone knows if its possible to execute a Trigger 's click  event of a TUniEdit on RunTime.

I have this function that receives a TUniEdit and depending on some validations i have to execute a trigger button click event (I have two triggers on each TUniEdit)

Hello,

UniEdit1TriggerEvent(UniEdit1, 0)

?

Posted
4 minutes ago, Sherzod said:

Hello,


UniEdit1TriggerEvent(UniEdit1, 0)

?

Hi!

I was expecting something like "UniEdit.JSInterface.JSCall('getTriggers().t1.click" which didnt work,  because i have a dinamic function on a datamodule so any form could call it and send just the uniEdit,  in the above example i have to know the triggerEvent procedure of each uniEdit i receive.

I'm trying to avoid doing it locally on each form.

 

Thank you!

i appreciate your help!

 

Posted

I made my own function for OnKeyUp, so when you create a form, all the elements are created dynamically.

when I create TuniEdit, I set MyEditComponent.OnKeyUp: = MyKeyUpFunction, this was done by the server as VCL.

Have you tried anything like this?

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