It appears that `fdesign' outputs some spurious characters if one tries
to create a bitmap object without supplying a bitmap file (in other words,
you want to specifiy the bitmap at run or compile time). The following
fdesign file illustrates the problem:
- - -
Magic: 13000
Internal Form Definition File
(do not change)
Number of forms: 1
Unit of measure: FL_COORD_PIXEL
=============== FORM ===============
Name: try
Width: 320
Height: 250
Number of Objects: 2
--------------------
class: FL_BOX
type: UP_BOX
box: 0 0 320 250
boxtype: FL_UP_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_CENTER
style: FL_NORMAL_STYLE
size: FL_DEFAULT_SIZE
lcol: FL_BLACK
label:
shortcut:
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name:
callback:
argument:
--------------------
class: FL_BITMAP
type: NORMAL_BITMAP
box: 180 30 50 60
boxtype: FL_NO_BOX
colors: FL_COL1 FL_COL1
alignment: FL_ALIGN_BOTTOM
style: FL_NORMAL_STYLE
size: FL_DEFAULT_SIZE
lcol: FL_BLACK
label:
shortcut:
resize: FL_RESIZE_ALL
gravity: FL_NoGravity FL_NoGravity
name:
callback:
argument:
==============================
create_the_forms
- - -
Pull it into `fdesign' then do a Save and Exit. Just above the
FD_try *create_form_try(void)
will be four bytes of binary junk. If you dump it in hex it looks
like it's a stack address of some sort.
This occurs on the SunOS 4.1.x version of `fdesign' but does not
occur in the SGI IRIX 6.x version.
spl
_________________________________________________
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://bloch.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/