Path: utzoo!attcan!uunet!cs.utexas.edu!usc!apple!bloom-beacon!GROUCH.JPL.NASA.GOV!PJS From: PJS@GROUCH.JPL.NASA.GOV (Peter Scott) Newsgroups: comp.windows.x Subject: Problems with List widget Message-ID: <890722170403.000027B3211@grouch.JPL.NASA.GOV> Date: 23 Jul 89 01:04:03 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 25 /* I am having a hell of a time trying to get the list widget to work. Could someone please explain why this minimal program listed below core dumps in XtCreateManagedWidget()? */ #include #include #include #include void main (argc, argv) int argc; char *argv[]; { Widget toplevel; static Arg menuargs[] = { { XtNverticalList, (XtArgVal) TRUE }, /* Innocuous, right? */ }; toplevel = XtInitialize ("main", "Demo", NULL, 0, &argc, argv); XtCreateManagedWidget ("menu", listWidgetClass, toplevel, menuargs, XtNumber (menuargs)); XtRealizeWidget (toplevel); XtMainLoop(); }