OptionButton1#onClicked

Started by velasquez · 2016-07-13 19:01 UTC · 2 replies · SMF topic #2386

What is the use of Value argument OptionButton1#onClicked?
It always returns 1.
It would be better if it returns the value before the selection.
Hello, it's easy to explain: option and checkbox are inherited by the same abstract class since their definition are very similar. Both of them have nearly the same properties and events. Until now you are right: OptionButton#OnClicked always return 1, but this may change in future.

Regards, Fred
author=Fred Tomke link=topic=2386.msg11955#msg11955 date=1468491727 wrote:
Hello, it's easy to explain: option and checkbox are inherited by the same abstract class since their definition are very similar. Both of them have nearly the same properties and events. Until now you are right: OptionButton#OnClicked always return 1, but this may change in future.

Regards, Fred


So the current state of OptionButton were shown at the time of selection of the actions would not be repeated in the case of a new selection.
Regards, elasquez