Statalist The Stata Listserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Dialog programming: (I)what lists can be passed (II)How to put quotes

From   "David Elliott" <[email protected]>
To   [email protected]
Subject   Re: st: Dialog programming: (I)what lists can be passed (II)How to put quotes
Date   Tue, 14 Nov 2006 09:42:18 -0400

Dialog Programming, Opus II

Thanks to James Hassell, I have made significant progress in my dialog
programming.  However, I am not clear on what can and cannot be done
in a "heavyweight i-action," it being very much a trial and error
undertaking.  Once can change labels and hide/disable controls.  Using
James's example above once can populate lists in the PREINIT stage of
dialog creation.  What I would like to do is populate a second list
following user selection of a variable.  That list would be populated
with the results of a levelsof.  I have tried to extend James's
example with a second ado, but I don't seem to be able to change the
contents of a list class once the dialog box has been created.  Am I
correct in thinking that once a dialog box has been initialized that
the only changes that can be made are to the interaction with the
controls themselves, not to the *contents* of the controls?

I see a way around this by creating a new dialog box to create and do
the picking of levels.  This would be similar in function to the ifin
expression builder dialog.  Am I correct in assuming that this would
be a viable alternative?  Are there any caveats?

Many thanks.  Although I have thoroughly read the dialog and class
sections, it is not always obvious how to use them to accomplish
specific tasks.

*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index