Categories | Alphabetical | Classes | All Contents | [ < ] | [ > ]

CW_TMPL


Syntax | Arguments | Keywords | Version History | See Also

The CW_TMPL procedure is a template for compound widgets that use the XMANAGER. Use this template instead of writing your compound widgets from "scratch". This template can be found in the file cw_tmpl.pro in the lib subdirectory of the IDL distribution.

Syntax

Result = CW_TMPL( Parent [, UNAME=string] [, UVALUE=value] )

Arguments

Parent

The widget ID of the parent widget of the new compound widget.

Keywords

UNAME

Set this keyword to a string that can be used to identify the widget in your code. You can associate a name with each widget in a specific hierarchy, and then use that name to query the widget hierarchy and get the correct widget ID.

To query the widget hierarchy, use the WIDGET_INFO function with the FIND_BY_UNAME keyword. The UNAME should be unique to the widget hierarchy because the FIND_BY_UNAME keyword returns the ID of the first widget with the specified name.

UVALUE

A user-specified value for the compound widget.

Version History

Introduced: Pre 4.0

See Also

XMNG_TMPL


Categories | Alphabetical | Classes | All Contents | [ < ] | [ > ]