XForms: Displaying Bitmaps

Robert James (james@saic.alaska.net)
Tue, 19 Jan 1999 13:48:30 -0900 (AKST)

# To subscribers of the xforms list from Robert James <james@saic.alaska.net> :

Not too familiar with the pros and cons of bitmaps vs pixmaps, I've displayed some pixmaps with no difficulty, but when it comes to
bitmaps I've drawn black blanks. I'm using the bitmap supplied in your DEMOS
directory, bm1.xbp, and I've defined the object thus:

fdui->bitmap1 = obj = fl_add_bitmap(FL_NORMAL_BITMAP,200,220,200,150,
"ATCCIS\nCRAB?");
fl_set_object_boxtype(obj, FL_FLAT_BOX);

fl_set_bitmap_file(obj,"bm1.xbm");
fl_set_object_color(obj,FL_BLACK,FL_YELLOW);
fl_set_object_lsize(obj,FL_LARGE_SIZE);
fl_set_object_lstyle(obj,FL_BOLD_STYLE);

The file, bm1.xbm, is located in my working directory, but the only thing that
ever displays is a black rectangle. What's wrong?

Bob James
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/