jahlxx Posted May 19, 2016 Share Posted May 19, 2016 Hi. How can I create run-time events for uniedits? I have done it in vcl apps, but I don't know how to do it in unigui. thanks. Quote Link to comment Share on other sites More sharing options...
bugra Posted May 20, 2016 Share Posted May 20, 2016 Hi. Did you mean assign procedure to run-time created uniedit's event? if you mean that try this. Create a procedure like public procedure myEvent(Sender: TObject); then assign which event you want when you create uniedit in runtime. uniEditCom.OnChange := myEvent; Quote Link to comment Share on other sites More sharing options...
jahlxx Posted May 20, 2016 Author Share Posted May 20, 2016 Hi. Thanks. This is the way I do it in vcl applications. but in unigui I get the compiler error: [dcc32 Error] lib.pas(1159): E2009 Incompatible types: 'method pointer and regular procedure' Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 20, 2016 Share Posted May 20, 2016 but in unigui I get the compiler error: [dcc32 Error] lib.pas(1159): E2009 Incompatible types: 'method pointer and regular procedure' Hi, //Create a procedure like public procedure myEvent(Sender: TObject); Your event procedures need to be methods of a class.. Best regards. Quote Link to comment Share on other sites More sharing options...
jahlxx Posted May 20, 2016 Author Share Posted May 20, 2016 ok. thanks. solved. newbe mistake. 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.