From: leela@wpi.WPI.EDU (Leela Keshavan)
Newsgroups: comp.windows.x.intrinsics
Subject: Help! Runtime error on HP710
Date: 26 Jan 93 18:13:56 GMT
Organization: Worcester Polytechnic Institute
NNTP-Posting-Host: wpi.wpi.edu

Hi,

I am trying to run this on an HP710 (it was compiled on the same machine..)
and i'm getting an annoying Xtoolkit error: Unresolved inheritance procedure.

I get the error on the line which is trying to create the message dialog.

I can't for the life of me figure out what the problem is.. any ideas?

Any help would be greatly appreciated.  Please forward replies to

leela@codex.com


Leela

---------------------------------------------------------------------y

#include <Xm/Form.h>
#include <Xm/MainW.h>
#include <Xm/Label.h>
#include <Xm/RowColumn.h>
#include <X11/Intrinsic.h>
#include <stdio.h>

Widget toplevel;

void XMainLoop()
{
    XtRealizeWidget(toplevel);
    XtMainLoop();
}

main(argc, argv)
int argc;
char *argv[];

{

	Widget fw, title, window, rowcol, button, _dialog;
    XmString msg_string, cancel_string;
    XtAppContext app;
    Arg args[2];
    int i;
    i = 0;


   toplevel = XtInitialize(argv[0],"top screen", NULL, 0, (Cardinal*)&argc, argv);

/*    toplevel = XtVaAppInitialize(&app, "Leela", NULL, 0, &argc, argv, NULL, NULL); */

    fw = XtVaCreateManagedWidget("mainform", xmFormWidgetClass,
								             toplevel,
								             XmNwidth, 700,
								             XmNheight, 300,
								             NULL);


    title = XtVaCreateManagedWidget(title,
                                     xmLabelWidgetClass,
                                     fw,
  				            XmNalignment, XmALIGNMENT_CENTER,
					    XmNwidth, 500,
						XmNtopAttachment , XmATTACH_POSITION,
					    XmNrightAttachment, XmATTACH_POSITION,
						XmNbottomAttachment, XmATTACH_POSITION,
					    XmNleftAttachment, XmATTACH_POSITION,
						XmNtopPosition, 0,
						XmNbottomPosition, 5,
						XmNleftPosition, 0,
						XmNrightPosition, 100,
					    NULL);


 /*    window = XtVaCreateManagedWidget("main_window", xmScrolledWindowWidgetClass,
					                  fw, NULL); */

     window = XtVaCreateManagedWidget("main_window", xmScrolledWindowWidgetClass,
					                  fw,
                      /*    XmNscrollingPolicy, XmAUTOMATIC, */
                         XmNtopAttachment, XmATTACH_POSITION,
					     XmNbottomAttachment, XmATTACH_POSITION,
					     XmNrightAttachment, XmATTACH_POSITION,
					     XmNleftAttachment, XmATTACH_POSITION,
					     XmNtopPosition, 6,
					     XmNbottomPosition, 79,
					     XmNleftPosition, 0,
						 XmNrightPosition, 99,
                         XmNborderWidth, 1,
                         NULL);     



     rowcol = XtVaCreateManagedWidget("row_column", xmRowColumnWidgetClass,
					                  window,
	                                     XmNorientation, XmHORIZONTAL,
                                             XmNpacking, XmPACK_COLUMN,
                                             XmNadjustLast, TRUE,
                                             XmNnumColumns, 2,
                                             NULL);

     button = XtVaCreateManagedWidget("Button_Area", xmFormWidgetClass, fw,
											XmNtopAttachment, XmATTACH_POSITION,
											XmNbottomAttachment, XmATTACH_POSITION,
											XmNleftAttachment, XmATTACH_POSITION,
											XmNrightAttachment, XmATTACH_POSITION,
										    XmNtopPosition, 80,
											XmNbottomPosition, 100,
											XmNleftPosition, 0,
											XmNrightPosition, 99,
											NULL);





  
   msg_string = XmStringCreateSimple("Leela is aggravated");
   XtSetArg(args[i], XmNmessageString, msg_string); i++;

   _dialog = XmCreateMessageDialog(rowcol,  "Status", args, i);

   XmStringFree(msg_string);


   XtUnmanageChild(XmMessageBoxGetChild(_dialog, XmDIALOG_CANCEL_BUTTON));
   
   XtVaCreateManagedWidget("transaction", xmLabelWidgetClass, (Widget)_dialog, NULL);
   XtVaCreateManagedWidget("object", xmLabelWidgetClass, (Widget)_dialog, NULL);
  
   XtManageChild((Widget)_dialog);
   XtPopup(XtParent((Widget)_dialog), XtGrabNone);
   XMainLoop();

   
}

    

    

    

    
      
   
Newsgroups: comp.windows.x.intrinsics