File: Container7a.c

package info (click to toggle)
motif 2.3.4-13
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 81,160 kB
  • ctags: 51,769
  • sloc: ansic: 596,938; cpp: 3,951; yacc: 2,854; makefile: 2,070; csh: 1,199; sh: 1,070; lex: 455
file content (45 lines) | stat: -rw-r--r-- 837 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/* $XConsortium: Container7a.c /main/2 1996/05/08 23:34:11 drk $ */

/* Motif 2.0 QATS IconVC Container7 Automated Test */

#include <testlib.h>
#include <Xm/XmAll.h>

int
main(int argc, char *argv[] )
{
  int n;
  Arg args[MAX_ARGS];
  Widget icon, scrolledWindow, container;
  Pixmap pixmap;
  XmString  str;

  CommonTestInit(argc, argv);

  scrolledWindow = XmCreateScrolledWindow(Shell1, "ScrollC7", args, n);
  XtManageChild(scrolledWindow);

  /* setup Container options */

  n = 0;
  XtSetArg(args[n], XmNselectionPolicy, XmMULTIPLE_SELECT); n++;


  /* create Container */

  container = XmCreateContainer(scrolledWindow, "ContainerC7",
    args, n);
  XtManageChild(container);
  
  XtAppMainLoop(app_context);


/*
  XmDestroyContainer(container);
  XmDestroyScrollWindow(scrolledWindow);
*/

  CommonPause();

  return 0;
}