ChartWidget Widget Class


Overview

The ChartWidget class is a convenience widget class that automatically creates a Chart object inside an EditObject widget. The main purpose of this widget class is to be used inside GUI builders so that one can create an application requiring a chart interactively. This widget class can also be used directly to create a Chart object and an EditObject widget in one step.

Inherited Behavior and Resources

The ChartWidget class inherits behavior and resources from the Core, Composite, Constraint, Manager, CompBase and EditObject classes.

The ChartWidget class does not define any new resources. You can however, specify any resources defined or inherited by the Chart object class. These resources will be applied directly to the Chart object created.


Functions

The following functions can be used to create a ChartWidget and to obtain the ID of the Chart object created by a ChartWidget widget.

XintChartWidgetGetObject

This function returns the ID of the Chart Object created by a ChartWidget widget.

     Object XintChartWidgetGetObject (Widget chart_widget)

where chart_widget is the ID of a ChartWidget widget.


XintCreateChartWidget

Function XintCreateChartWidget creates an unmanaged ChartWidget widget.

     Widget XintCreateChartWidget (...)

WidgetparentParent of new ChartWidget widget.
char *nameName of new ChartWidget widget.
ArgListarglistList of resource/value items.
CardinalargcountNumber of items in arglist.