SIRE Software Posted March 27, 2021 Share Posted March 27, 2021 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!! Link to comment Share on other sites More sharing options...
Sherzod Posted March 27, 2021 Share Posted March 27, 2021 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) ? Link to comment Share on other sites More sharing options...
SIRE Software Posted March 27, 2021 Author Share Posted March 27, 2021 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! Link to comment Share on other sites More sharing options...
Sherzod Posted March 27, 2021 Share Posted March 27, 2021 Sorry, Your case is not very clear to me. Link to comment Share on other sites More sharing options...
irigsoft Posted March 27, 2021 Share Posted March 27, 2021 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? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now