Jump to content

events in run-time


jahlxx

Recommended Posts

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;
Link to comment
Share on other sites

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'

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...