Documentation error in wxRadioButton?
Alec Ross
alec at arlross.demon.co.uk
Thu Sep 6 12:52:41 PDT 2007
In message <2603.192.87.167.62.1189079503.squirrel at vermeer.tv>,
koen at vermeer.tv writes
>>>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!
>
If it helps, it is an analogous control to waveband or station selectors
on old radios. Pressing a button selected a waveband or station. If
another station had been selected previously it's button popped up,
deselecting that that earlier choice.
HTH
Alec
--
Alec Ross
More information about the wx-users
mailing list