stumpf@lan.informatik.tu-muenchen.dbp.de (Markus Stumpf) (02/10/89)
Hello, I'm trying to get the xnext program to run, which was posted some time ago. This program creates a client, with one button and exits when this button is pressed. (It's a commandWidget) My problem is, I can't get the bitmap into the button. I tried by including a line like XNext*bitmap: $HOME/bitmaps/next.xdm in my $HOME/.Xdefaults file, but that doesn't work. Every time I start the program I get X Toolkit Error: No type converter registered for 'String' to 'Pixmap' conversion. so I tried to put a line XtAddConverter(XtRString, XtRPixmap, XmuCvtStringToPixmap, NULL, 0); just before XtSetArgs() and XtCreateManagedWidget() included <X11/StringDefs.h> and made XmuCvtStringToPixmap() extern. This results in another error: X Toolkit Error: String to pixmap conversion needs screen argument Looking at the code in Label.c in src/Xaw I found in routine ClassInitialize() a call to XtAddConverter() for XtRJustify. Shouldn't there be a call to XtRPixmap, too ?? Sorry, if this is a silly question, but I'm new to Xt. Oh, I'm running X.V11R3 with all 8 patches on an mVaxII (qvss) Thanks \Maex +------------------------------------------------------------------------------+ | Markus Stumpf | | TU Muenchen local: lan.informatik.tu-muenchen.dbp.de | | Inst. f. Informatik DFN: stumpf@{local} | | Arcisstrasse UUCP: stumpf%{local}@unido.uucp | | D-8000 Muenchen ARPA/CS: stumpf%{local}@relay.cs.net | | West Germany BITNET: infrza02@dm0tui1s.bitnet | +------------------------------------------------------------------------------+