--- From http://www.xs4all.nl/~barcoc/

Integrating the Xbae Matrix widget in BX-pro 5.0
by Henk Jan Barendregt
Last modified : june 27 1999



While working on a project with BX-Pro there was the need to integrate
a table widget. As I intend to make an open source program I choose to
work with the Xbae Matrix Widget.  As I am not familiar with
customizing BX it took some long nights to fix it.  On this page I
will provide the files that are used to integrate Xbae Matrix.  You
can download the files here.  The package is in tar.gz format.  If you
have installed BX-Pro properly can unpack the file in your homedir
with the following command: tar xzvf BxXbae.tar.gz

The files will be extracted and stored in the correct path.  These
scripts assume that Xbae is build as a dynamic library and is in the
directory /usr/X11R6/lib The include files should be in
/usr/X11R6/include/Xbae

The package contains the following files :

  $HOME/.builderXcessory/pixmaps/Xbae.pix
  $HOME/.builderXcessory/wml/user.wml
  $HOME/.builderXcessory/collections/XbaeMatrix.col
  $HOME/.builderXcessory/package/Xbae.cat

To make BX-pro load the XbaeMatrix information when the program starts
you should add the following line to the list of include files in the
file $HOME/.builderXcessory/package/admin.cat

Include "Xbae.cat";

Now it is time to start BX-Pro.  When there are no loading errors you
should see the Xbae pixmap int the Widget palette. Try to make a GUI
with a Xbae matrix in it

For proper code generation  goto menu :

    Options -> Code Generation Preferences -> Makefile

and  type -lXbae before -lXm

Now you can generate code and build the program.

On my system (RedHat 6.0)  i had to set the library path :

   export LD_LIBRARY_PATH=/usr/X11R6/lib






Known Problems :

- In user.wml the XtLiteral is set to "xbaeMatrixWidgetClass" BX
will complain about an undefined symbol but the result in the source
is ok.

- For some strange reason BX-Pro does not allow to change resources I
also removed XmNrow and XmNcolumn from the Resource list in user.wml
becouse BX-Pro was complaining about redefinition.

- Because the resources can't be set it is not possible to ad widgets
to the table.




For any comments you can send mail to Henk Jan Barendregt



BX-Pro is a product of Integrated Computer Solutions Inc.
Xbae Matrix is product of Bellcore and Andrew Lister
