Article View: comp.windows.x
Article #36479two Motif questions
From: Rick.Kazman
Date: Wed, 07 Feb 1990 00:01
Date: Wed, 07 Feb 1990 00:01
26 lines
1324 bytes
1324 bytes
I am running Motif 1.0 on a Sun3, with SunOS 3.5. I have been having two
strange problems which I'm hoping someone else has run across.
1) I can't get XtDisplay to work. My program just hangs at (or just after)
this call. Instead, I've abandoned XtInitialize, and I'm using its
component parts, XtToolkitInitialize, XtOpenDisplay (from which I get the
display returned) and XtAppCreateShell.
2) I can't get a list of the children of a composite widget (a
bulletin_board, for instance). I use the following code (cw is my
composite widget):
num_children = cw->composite.num_children ;
for (i = 0; i< num_children; i++)
{
fprintf(stderr, "child %d = %d\n", i, cw->composite.children[i]) ;
/* My own code goes here */
}
This always bombs out, and if I print the address of the list of children,
it is 0, that is, the way that it is initialized. I'm confused. Can
someone out there enlighten me?
Thanks. rick
Technical Details
Message-ID:
<9002070001.AA16562@ew.sei.cmu.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!mcgill-vision!bloom-beacon!SEI.CMU.EDU!Rick.KazmanShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!mcgill-vision!bloom-beacon!SEI.CMU.EDU!Rick.Kazman From: Rick.Kazman@SEI.CMU.EDU Newsgroups: comp.windows.x Subject: two Motif questions Message-ID: <9002070001.AA16562@ew.sei.cmu.edu> Date: 7 Feb 90 00:01:37 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 26