ChartObject WebFAQ - Q9


    :
main(argc, argv)
  int     argc;
  char    *argv[];
{
  Widget        box, label, button;
  XmString      cstring;
    :
    :
   /*
    * Remove XmNchartFooter and XmNshowLegend editors from
    * the chart resource editor menu.
    */
    box = XintResEditGetBox(chart, XmNchartFooter, 1);
    XtUnmanageChild(box);

    box = XintResEditGetBox(chart, XmNshowLegend, 1);
    if (box != NULL) XtUnmanageChild(box);

   /*
    * Change name of option menu "Chart Type" to "My Type"
    */
    label = XintResEditGetLabel(chart, XmNchartType, 1);
    cstring =  XmStringCreateSimple("My Type");
    XtVaSetValues(label, XmNlabelString, cstring, NULL);
    XmStringFree(cstring);

   /*
    * Unmanage High Low and Cell Array choices in chart type
    */
    button = XintResEditGetMenuButton(chart, XmNchartType, "High Low");
    if (button) XtUnmanageChild(button);

    button = XintResEditGetMenuButton(chart, XmNchartType, "Cell Array");
    if (button) XtUnmanageChild(button);
    :
    :

Click here for the Image
Back to ChartObject FAQ

© INT 1996.