Tim Burgess
2014-03-17 17:40:55 UTC
Hi,
I've never got this clear in my head, so I'm very overdue asking this
question. Here's the scenario:
1 - I have a dialog constructor designed to allow editing of an existing
object which is being passed in as a parameter.
2 - The required layout of the dialog is dependent on some aspect of the
object being passed in. For example, I have a group of radio buttons that
indicate the "type" of the received object - obviously, it's easy to use
SetValue( true) on the correct radio button to indicate the "type" at
construction time.
3 - Using SetValue( true) as described above does not trigger the event
handler for the chosen radio button, so how do I best control the
enabled/visible properties of any other controls in the dialog that are
dependent on the detected "type"? Should I just send the message manually to
cause the event handler to trigger, or is this bad practise?
Any and all advice gratefully accepted.
Best wishes.
Tim Burgess
I've never got this clear in my head, so I'm very overdue asking this
question. Here's the scenario:
1 - I have a dialog constructor designed to allow editing of an existing
object which is being passed in as a parameter.
2 - The required layout of the dialog is dependent on some aspect of the
object being passed in. For example, I have a group of radio buttons that
indicate the "type" of the received object - obviously, it's easy to use
SetValue( true) on the correct radio button to indicate the "type" at
construction time.
3 - Using SetValue( true) as described above does not trigger the event
handler for the chosen radio button, so how do I best control the
enabled/visible properties of any other controls in the dialog that are
dependent on the detected "type"? Should I just send the message manually to
cause the event handler to trigger, or is this bad practise?
Any and all advice gratefully accepted.
Best wishes.
Tim Burgess
--
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
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