jahlxx Posted May 19, 2016 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
bugra Posted May 20, 2016 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
jahlxx Posted May 20, 2016 Author 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
Sherzod Posted May 20, 2016 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
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.