Freeman35 Posted October 20, 2016 Share Posted October 20, 2016 Hello, when I try this code "UnimLoginForm.ClientEvents.UniEvents.Add('');" in "TUnimLoginForm.FormCreate" I get error "An instance <UnimLoginForm> already is being created" I wanna add some function in runtime. this is for easy use for checked each forms has added unievent(s) How to do this? trail 1321 Thank you Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted October 20, 2016 Administrators Share Posted October 20, 2016 You don't need to use "UnimLoginForm" instance. Simply use: ClientEvents.UniEvents.Add Quote Link to comment Share on other sites More sharing options...
Freeman35 Posted October 22, 2016 Author Share Posted October 22, 2016 Thank you Farshad, this my code: ClientEvents.UniEvents.Add('function window.beforeInit(sender, config){config.showAnimation ={type: ''slide'', direction: ''right'', duration: 1000,};}'); I'm not get error now, but application not work. I mean, just square and loading... text show, small square moving, but loginform or any form not showing. and not any error showing but stop like that. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted October 22, 2016 Administrators Share Posted October 22, 2016 "ClientEvents-Dynamic" demo will help you. 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.