OptionButton1#onClicked

Started by velasquez, July 13, 2016, 12:01:02 PM

Previous topic - Next topic

velasquez

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.

Fred Tomke

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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

velasquez

Quote from: Fred Tomke on July 14, 2016, 03:22:07 AM
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