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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...