Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: More unpublicised dialog commands


From   jhassell@stata.com (James Hassell)
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: More unpublicised dialog commands
Date   Thu, 26 Aug 2004 14:24:43 -0500

Roger Newson wrote:
>I now have another query about dialogs (which I also raised with Vince, who
>referred me to James). The official Stata dialog file -efunction.dlg-
>contains another unpublicised command, namely EXP, which appears to specify
>an expression button, which, if clicked on, causes an expression pallette
>to open, allowing the user to create (and graph) an expression by pointing
>and clicking. (Users can type -db efunction- to demonstrate this.) What is
>the syntax of the EXP command? And how many more unpublicised dialog
>commands are there?

EXP (expression control) takes the following options in addition to
the normal position arguments.

	label()
	error()
	default()
	option()
	buttonwidth()
	onchange()

Unless I am mistaken, the only undocumented controls available to the
dialog system are the expression builder (EXP) and the custom color
picker (COLOR).

I have inserted example code for the expression builder below.

**********
VERSION 8.0

POSITION . . 400 300

HELP hlp1, view("help someHelpFile")
RESET res1
OK ok1, label("OK")
CANCEL can1, label("Cancel")
SUBMIT submit1, label("Submit")

DIALOG main, label("Test dialog") tabtitle("Main")
BEGIN
	EXP  ex_name 10 10 300 .,			///
		label("Create")				///
		error("Error message here")		///
		default(x < 10)				///
		option(my expression)			///
		buttonwidth(130)			///
		onchange(script my_script)
END

**********

-- James
jhassell@stata.com
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index