Discussion:
can't change wxRadioButton value when not visible
(too old to reply)
Theo Veenker
2014-10-19 15:26:48 UTC
Permalink
Hi all,

Say I have a notebook style gui with two pages. I'm working in page 1 and from that page I
want to change the value of a radio button in page 2. Under GTK this works fine, but under
Windows nothing happens.

I can reproduce the problem with the controls sample, see attached patch. From the
"wxChoice" page I made the "Set Italic font" button call SetValue() on one of the radio
buttons (rb or rb2) in the "wxRadioBox" page.

Apparently the modified radio button does notice it being changed (according to the log
area), but the actual value doesn't change nor does it visually change.

Any idea what is going on here, or how to solve it?

This is with: Windows 7, WX 3.0.1, mingw-w64

Thanks,
Theo
--
Theo Veenker | Beexy - Behavioral Experiment Software
+31(0)524-541531 | +31(0)6-42525777 mobile
***@beexy.nl | www.beexy.nl
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Theo Veenker
2014-10-23 12:00:23 UTC
Permalink
Post by Theo Veenker
Hi all,
Say I have a notebook style gui with two pages. I'm working in page 1 and from that page I
want to change the value of a radio button in page 2. Under GTK this works fine, but under
Windows nothing happens.
I can reproduce the problem with the controls sample, see attached patch. From the
"wxChoice" page I made the "Set Italic font" button call SetValue() on one of the radio
buttons (rb or rb2) in the "wxRadioBox" page.
Apparently the modified radio button does notice it being changed (according to the log
area), but the actual value doesn't change nor does it visually change.
Any idea what is going on here, or how to solve it?
This is with: Windows 7, WX 3.0.1, mingw-w64
Anyone an idea if this is a bug or not? How can one change the state of a radio button
when it is not visible at the moment?

Theo
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Loading...