Documentation error in wxRadioButton?

koen at vermeer.tv koen at vermeer.tv
Thu Sep 6 04:51:43 PDT 2007


>>Returns true if the radio button is depressed, false otherwise.
>>Isn't that backwards? I mean, shouldn't it be true for pressed (or
>>selected, as it is called in the description of SetValue()) and false
>>otherwise?
> depressed == pressed   // depressed != de-selected
>                                      // depressed != unpressed

I see. That is, I missed the first step. My reasoning was this: I thought
depressed only means 'press down'. For a button, which looks depressed if
you press it, this works out as 'depressed == pressed'. For a radiobutton,
there is no 'press down'; rather, it's selected or not. So, depressed had
to mean something else: depressed -> de-pressed -> de-selected.

Anyway, I'm not yet sure about 'depressed == pressed'; I'll leave that to
the native speakers. But thanks for the clarification!

Koen





More information about the wx-users mailing list