Ron Posted March 22, 2021 Share Posted March 22, 2021 (edited) I am not able to make extevents linked to a runtime created panel to work, although unievents linked to runtime created objects seem to be working fine. I have made a testcase with two panels, one design time created and one runtime created, with the same mouseover event, triggering a console.log function just for testing. The events are stored OK in the runtime created panel object, something you will see if you check the value for mouseover, but the events are somehow not triggered. project1.zip Edited March 23, 2021 by Ron problem solved Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 23, 2021 Share Posted March 23, 2021 Hello, We will check your testcase. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 23, 2021 Share Posted March 23, 2021 7 hours ago, Ron said: The events are stored OK in the runtime created panel object, something you will see if you check the value for mouseover, but the events are somehow not triggered. Hello, You must assign a name. panTest:= TUniPanel.Create(self); with panTest do begin parent:=mainForm; Name := 'dynamicPanel'; //<----- ... Quote Link to comment Share on other sites More sharing options...
Ron Posted March 23, 2021 Author Share Posted March 23, 2021 4 hours ago, Sherzod said: Hello, You must assign a name. Then it works fine! Thank you very much, Sherzod I assumed that the name was set to the variable name, as with the design time components, and that it was not necessary to set it specifically. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.