[Gambas-user] RadioButton events (1.9.46a)

Richard richard.j.walker at ...247...
Tue Jan 30 00:53:48 CET 2007


I am not sure if this is a bug, or if I just don't know what is happening.
I have two RadioButtons which I use to select the audio recording mode; Mono 
or Stereo. The recording mode can be stored as a TRUE or FALSE value in an 
array of settings for a number of scheduled recording events.

The user may select one of ten stored settings for recordings by clicking on a 
control and the values for a selected recording are copied to the controls on 
the form so that they may be reviewed or altered.

The click event handler for the RadioButton controls does not have to do very 
much as the occurrence of the event means that the control value must be 
"TRUE", so I just use it to copy the value of the stereo RadioButton (or the 
complement of the mono RadioButton) to the storage array.

Unfortunately, when I update the RadioButton value from the stored array then, 
regardless of the stored value, the RadioButton click event is triggered. If 
I am expecting a TRUE value to be changed to the FALSE value stored for the 
new current recording then I will be disappointed as my click event handler 
does not see the value which has just been written from the array, and 
incorrectly updates the array value with the TRUE value I was trying to 
overwrite.

Do you think it is me or the RadioButton being unreasonable?

Richard	




More information about the User mailing list