assuming you have a GUI component containing already a Push Button and a Value Display to display the counter, following would be the possible approach:
Step 1: add a new slot method to your GUI component.
Step 2: Assign the slot method to the button's property OnActivate.
Step 3: Open the slot method and implement following or similar code:
ValueDisplay.CurrentValue = ValueDisplay.CurrentValue + 1;
So far the necessary steps.
Have you worked through the Quick Tour chapter? It demonstrates the typical workflow tasks including also such basics like: how to add a push button and how to connect a slot method to it. May be it helps you further? Also interesting is the chapter Using Widgets: Push Buttons explaining the usage of the push button in detail and the chapter Using Widgets: Value Display explaining this widget.
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!