From | Tim Hofer <[email protected]> |
To | [email protected] |
Subject | Re: st: Re: Re: dialog programming |
Date | Fri, 05 Dec 2003 12:36:20 -0500 |
James Hassell (one of the StataCorp dialog gurus) replied:
Sophie originally wrote:enters 4
I am currently working on a dialog program which is meant to have a
different dialog depending on the number of groups entered in the first
window. I.e. if the use enters 2 groups in the main window, then he will
find two boxes to enter a value in on the options window, and if he
programgroups initially, then he will find 4 boxes etc. is there a way to
youthis?And Thomas Steichen followed up with:
If you have a small set of possible groups sizes, small enough so that
becan choose among them with a radio control, then what you want to do can
capturedone easily. But, I am fairly certain there is not an _easy_ way to
James,the numeric value of a control and use it to modify the appearance of aThomas is exactly right. There is not a method built into the Stata
dialog window.
dialog language for passing information between two dialog windows.
Thomas also suggested letting the user specify the desired number of
groups with RADIO buttons. This is a good solution which could possibly
be enhanced by using a COMBOBOX or LISTBOX. The general idea is to force
the user to specify how many groups are expected. With this information,
the event handlers for that control, can show and hide additional EDIT
boxes or other controls located on the same tab or even other tabs.
However, they cannot control other dialog box windows.
Sophie did contact Stata technical support and has been provided with
the information above. I thought others might be interested, so I decided
to post a follow up here.
You left out the other part of my answer... where I suspected that it might
be doable "by
invoking an .ado and/or by using some of the non-public features of the
dialog language."
So, I'll ask directly: Is it possible to capture the numeric value of one
control then use it to manipulate the event handlers for other controls?
Tom
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
* * For searches and help try: * http://www.stata.com/support/faqs/res/findit.html * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |