95 views
in GUI Development by
Hi,

I am creating content (text boxes, images and buttons) at run-time, and can see how to attach an existing slot (added before building) to a dynamically generated button, but can a slot also be created and 'populated' at run-time?

Or do I need to create the slot and ensure Generator = true?

Thanks

1 Answer

0 votes
by

Hello Phil,

I'm not sure whether I understand your question. Do you want to create a method implementation dynamically at the runtime? If yes, this would expect the code of the method to be compiled by Chora compiler and by the C compiler. As such it is not possible.

Or your intention is to connect a button with an existing slot method at the runtime? In such case, you assign the slot method to the corresponding property of the button. For example:

Button.OnActivate = SomeObject.DoSomethingSlotMethod;

Does it address your question?

Best regards

Paul Banach

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...