A task with buttons !

 

There are 10 buttons on the chart,

Task : When any of the buttons is pressed, the previous button pressed should be released. How to solve this task without using OnChartEvent?

 
Vladimir Pastushak:

There are 10 buttons on the chart,

Task : When any of the buttons is pressed, the previous button pressed should be released. How to solve this task without using OnChartEvent ?

How isOnChartEvent() not suitable?
 
Anatoli Kazharski:
What's wrong with OnChartEvent()?
Doesn't work in the tester...
 

It is difficult to give advice without knowing the architecture (structure) of the program.

For example, you can store the name (pointer to object) of the last pressed button in a global variable and change the "status" of the previous button when you press another one.
 
Ilyas:

It is difficult to advise without knowing the architecture (structure) of the programme.

For example, you can store the name (pointer to the object) of the last pressed button in a global variable and change the "status" of the previous button when you press another one.
The task is simple, as described in the first post ... 10 buttons, one pressed the previous one was pressed ...
 
Vladimir Pastushak:
Doesn't work in the tester...
In a timer, you can try to keep track.
 
Anatoli Kazharski:
In a timer, you could try to keep track.
Can you suggest a solution ?
 
Vladimir Pastushak:
Can you suggest a solution?

I haven't experimented with graphical objects in the tester for a long time, because previously many objects could not be created there at all.

Maybe the developers have plans to make OnChartEvent() work in the tester? Not interested in the Service Desk?

 

Does the timer in the tester work?

How do you press a button in the tester without producing an OnChart event? By software?

 

Buttons in tester work fine, clicked with mouse...

OnChartEvent() is planned, but when is not yet known ...

 
Look at the architecture of the RadioGroup controller...
Reason: