home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sources / bugs / 220 next >
Encoding:
Text File  |  1992-08-12  |  2.7 KB  |  82 lines

  1. Xref: sparky comp.sources.bugs:220 comp.sources.d:1171
  2. Path: sparky!uunet!opel!slc1!vk2bea!michael
  3. From: michael@vk2bea.UUCP (Michael G. Katzmann)
  4. Newsgroups: comp.sources.bugs,comp.sources.d
  5. Subject: xboard/gnuchess problem
  6. Keywords: gnuchess xboard chess
  7. Message-ID: <1002@vk2bea.UUCP>
  8. Date: 12 Aug 92 15:58:43 GMT
  9. Followup-To: poster
  10. Organization: Broadcast Sports Technology., Crofton, MD
  11. Lines: 69
  12.  
  13. I have been trying to get 'xboard', the gnuchess frontend for X
  14. working on my HP9000/380 HPUX 8.0 (X11R4) machine.
  15.  
  16. It works fine up to the point of getting input from the user for a file
  17. name.  It uses a "pop-up" widget. When the popup appears, the following
  18. is output to stderr....
  19.  
  20.  
  21. Warning: Actions not found: beginning-of-line, backward-character, 
  22. delete-next-character, end-of-line, forward-character, multiply,
  23. delete-previous-character, newline-and-indent, kill-to-end-of-line,
  24. redraw-display, newline, next-line, newline-and-backup, previous-line,
  25. search, transpose-characters, next-page, kill-selection, insert-selection,
  26. scroll-one-line-up, backward-word, forward-word, insert-file,
  27. kill-to-end-of-paragraph, form-paragraph, previous-page, scroll-one-line-down,
  28. delete-next-word, kill-word, delete-previous-word, backward-kill-word,
  29. beginning-of-file, end-of-file, forward-paragraph, backward-paragraph,
  30. insert-char, focus-in, focus-out, select-start, extend-adjust, extend-end,
  31. extend-start
  32.  
  33. The code that produces this is:
  34.  
  35.  
  36. void
  37. FileNamePopUp(label, proc)
  38.     char *label;
  39.     void (*proc) P((char *name));
  40. {
  41.     Arg args[2];
  42.     Widget popup, dialog;
  43.     Position x, y;
  44.     Dimension bw_width, pw_width;
  45.  
  46.     fileProc = (XtCallbackProc) proc;
  47.  
  48.     XtSetArg(args[0], XtNwidth, &bw_width);
  49.     XtGetValues(boardWidget, args, 1);
  50.  
  51.     XtSetArg(args[0], XtNresizable, True);
  52.     XtSetArg(args[1], XtNwidth, DIALOG_SIZE);
  53.  
  54.     popup = XtCreatePopupShell("File Name Prompt",
  55.         transientShellWidgetClass, commandsWidget, args, 2);
  56.  
  57.     XtSetArg(args[0], XtNlabel, label);
  58.     XtSetArg(args[1], XtNvalue, "");
  59.  
  60.     dialog = XtCreateManagedWidget("dialog", dialogWidgetClass,
  61.         popup, args, 2);
  62.  
  63.     XawDialogAddButton(dialog, "ok", FileNameCallback, (XtPointer) dialog);
  64.     XawDialogAddButton(dialog, "cancel", FileNameCallback, (XtPointer) dialog);
  65.  
  66.     XtRealizeWidget(popup);   <========The "error" is reported here
  67.  
  68.  
  69. I am a complete novice, when it comes to X windows and widgets, so if
  70. anyone can point me in the right direction I'd be grateful.
  71.  
  72. Is it a problem in the Xaw/Xmu/Xt libraries?
  73.  
  74. Please e-mail me your ideas. (To the address below (the reply address is
  75. invariably wrong))
  76.  
  77. -- 
  78. Michael Katzmann      >    Broadcast Sports Technology Inc.
  79. ~~~~~~~~~~~~~~~~     <    Crofton, Maryland. U.S.A
  80. Amateur Radio Stations:   >
  81. NV3Z / VK2BEA / G4NYV     <    opel!vk2bea!michael@uunet.uu.net
  82.