lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi] Enumerating radiobuttons in a radiobox


From: Greg Chicares
Subject: [lmi] Enumerating radiobuttons in a radiobox
Date: Sun, 27 Nov 2005 18:08:44 +0000
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

Vadim--For automated GUI unit testing, it would be handy to have
  bool wxRadioBox::IsEnabled(int n); // enablement state of nth radiobutton
in order to verify that a button is enabled exactly when it should be.

No function like
  wxRadioButton* wxRadioBox::GetRadioButton(int);
exists, and that's a good design: such data should be hidden, like
  msw: wxSubwindows *m_radioButtons;
  gtk: wxList        m_boxes;
and some platforms seem to let the 'buttons' be of classes other than
wxRadioButton anyway. But each button, whatever its class may be, must
have an enablement state.

It looks like it's possible to get the enablement state indirectly with
wx-2.6.2, by calling
  virtual bool wxRadioBox::Enable(int n, bool enable = true);
and checking the return value. But for the moment I'm still using wx-2.5.4,
which has only
  virtual void wxRadioBox::Enable(int n, bool enable = true);
with no return value. Is there a reasonable workaround for wx-2.5.4?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]