?
Hallo, ich bin etwas am verzweifeln. Ich versuche eine Pixmap datei als Background in ein simplewidgteclass einzubinden...
#include "bild.xpm"
Arg args[10];
Cardinal n;
Widget bild;
Widget toplevel;
toplevel = XtOpenApplication(&app_con, "Blabla", NULL, 0, &argc,
argv, fallback_resources, sessionShellWidgetClass, NULL, 0);
n = 0;
XtSetArg(args[n], XtNwidth, 100); n++;
XtSetArg(args[n], XtNheight, 100); n++;
XtSetArg(args[n], XtNbackgroundPixmap, bild.xpm); n++;
bild = XtCreateManagedWidget("bla", simpleWidgetClass,
toplevel, args, n);
Soweit funktioniert alles. Widget ist da, nur eben das Pixmap als Hintergrund nicht. Kennt jemand vielleicht eine Lösung? Ich wäre für jede Hilfestellung dankbar. Ich weiß nicht, wie ich dieses Pixmap bild.xpm in das widget bekomme...