Creating dynamic window

<[email protected]>
Newsgroups gmane.comp.python.pythoncard
Message-ID <[email protected]>
Hi list,

I have a need to create an ap that changes at run time
depends on what choices were selected.  I have a tree
control on the left, a static text area on the top
right, and now I like to have other components on the
lower right but it would depend on what the user
clicked on the tree.

The obvious way would be to design one dialog window
for each of the tree branches, and then when selected,
pop up the dialog window and off it goes.  The problem
is that not only would that be very boring, it is a
*lot* of work because I have lots of branches - close
to 100.

What I am hoping is to simply have a template document
that says when clicked on branch 1, I need a static
text, followed by a button, a .... and so forth.  I
kind of have this document already.  Now I need to
figure out how to create these components on the fly.

Does anybody has a simple example on how this can be
done?  I notice, for example, with the PythonCard
layout Editor, the Property Editor in effect changes
as a function of what the user clicks.  So this is
something doable.  I did a brief look at the source
code and its too big and complex program to chew on. 
I am hoping that somebody has a simpler example.

Thanks,



--
John Henry

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.