Jump to content

Recommended Posts

Posted

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.

 

Posted

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;
Posted

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'

Posted

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.

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...