The Group class is also used as the base class for more complex object classes such as Chart or Plot2D.
Widget edit; /* The parent EditObject widget */
XintTextLocation text_location;
XintLine line_location;
Object group;
...
/* Create the group */
group = (Object) XtVaCreateWidget("group",
(WidgetClass)xintGroupObjectClass,
edit,
XmNlist, list,
XmNlistCount, 2,
NULL);
/* create an Text object and insert in the group */
text_location.x = 50;
text_location.y = 50;
XtVaCreateWidget("text", (WidgetClass)xintTextObjectClass, edit,
XmNgroup, group,
XmNtextLocation, &text_location,
XmNtextAnchor, XintBOTTOM_RIGHT,
XmNtextString, "Something there?",
XmNfontSize, 12,
XmNroundEdge, True,
XmNfillStyle, XintFILL_SOLID,
XmNlineStyle, XintLINE_SOLID,
NULL);
/* Create line object and insert it in the group */
line_location.start_x = 50;
line_location.start_y = 50;
line_location.end_x = 70;
line_location.end_y = 70;
XtVaCreateWidget("line", (WidgetClass)xintLineObjectClass, edit,
XmNgroup, group,
XmNline, &line_location,
XmNlineThickness, 2,
XmNlineEnd, XintEND_ARROW,
NULL);
...
| Name | Type | Default | Access |
|---|---|---|---|
| XmNlist | Object * | NULL | CSG |
| XmNlistCount | int | 0 | CSG |
| XmNpropagate | Boolean | False | S |
Object XintCreateGroup (...)
| Widget | parent | Parent of new Group object. |
| char * | name | Name of new Group object. |
| ArgList | arglist | List of resource/value items. |
| Cardinal | argcount | Number of items in arglist. |
Boolean XintIsGroup (Object object)