OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: velasquez on July 13, 2016, 12:01:02 PM

Title: OptionButton1#onClicked
Post by: velasquez on July 13, 2016, 12:01:02 PM
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.
Title: Re: OptionButton1#onClicked
Post by: 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
Title: Re: OptionButton1#onClicked
Post by: velasquez on July 14, 2016, 05:35:44 AM
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