Modifying a control based on an adjacent control.

Can someone point me to an example program that shows how to modify a
dialog's control (ie.fill a TextCtrl, or re-fill a list) in response
to an event generated from that same dialog. I am trying to find out
how to access a dialog's controls from within my event handler. I have
a feeling that I am approaching this incorrectly but I can't seem to
find a decent simple example (they all seem to only deal with
modifying some higher level object based on closing the dialog). I
want to change the contents of a TextCtrl when a selection is made in
an adjacent combobox.

RQ

Hi Richard,

simple.py (1.17 KB)

ยทยทยท

Am Fri, 24 Jun 2005 22:47:05 +0200 schrieb Richard Querin <rfquerin@gmail.com>:

Can someone point me to an example program that shows how to modify a
dialog's control (ie.fill a TextCtrl, or re-fill a list) in response
to an event generated from that same dialog. I am trying to find out
how to access a dialog's controls from within my event handler. I have
a feeling that I am approaching this incorrectly but I can't seem to
find a decent simple example (they all seem to only deal with
modifying some higher level object based on closing the dialog). I
want to change the contents of a TextCtrl when a selection is made in
an adjacent combobox.

Attached is a simple app that should point you in the right direction.
It uses a Frame but the principle is the same for a Dialog.

Adi