[comp.sys.hp] Starbase and Xwindows

thender@uxh.cso.uiuc.edu (10/06/90)

I am trying to port a Starbase code to Xwindows using fortran.
We have a HP 350 SRX currently.  I have done extensive programing using
Starbase, but have yet to use it with HP Windows or X Windows.
I am having trouble because there are no example programs that
I can find using fortran, Starbase and X Windows in the HP manuals.
The manuals themselves aren't very useful to a mechanical engineer
who only knows fortran and very little about X Windows to begin with.

We currently are using HP-UX 5.5, and I think the version of X Windows
we have is like 10 or something like that.  I know it is old.  We also 
use the 98721 option to compile our Starbase codes with.  Any help
would be appreciated.  Thank you in advance.

Todd Henderson
CFD Lab U. of Illinois

thender@uxh.cso.uiuc.edu (10/06/90)

  I just wrote the previous note about Starbase and Xwindows and
forgot to give a email address.  You may respond to the news group
or send mail to:

hender@uicfda.aae.uiuc.edu

Thank you again for your help.

phil@hpsmdca.HP.COM (Philip Walden) (10/08/90)

>I am trying to port a Starbase code to Xwindows using fortran.
>We have a HP 350 SRX currently.  I have done extensive programing using
>Starbase, but have yet to use it with HP Windows or X Windows.
>I am having trouble because there are no example programs that
>I can find using fortran, Starbase and X Windows in the HP manuals.
>The manuals themselves aren't very useful to a mechanical engineer
>who only knows fortran and very little about X Windows to begin with.
>
>We currently are using HP-UX 5.5, and I think the version of X Windows
>we have is like 10 or something like that.  I know it is old.  We also 
>use the 98721 option to compile our Starbase codes with.  Any help
>would be appreciated.  Thank you in advance.

X10?!?!

X11 does a much better job of letting your existing programs work in
X without drastic changes. The xwcreate program can be used to make
a window connected to a special device file for starbase to use.
The sox11 starbase driver or starbase-direct drivers can be used
without changing your existing code. I have a large Fortran-starbase
application that worked successfully with X. I simple created a script
that calls xwcreate and then schedules my program.

If you must use X10, then the easiest method is to create your own
xwcreate. There are several calls, for example XHpIcreateWindow (spelling may 
be incorrect, it's been awhile), that make this easy. The idea is to make
a "helper" program that opens the X window and then schedules your program
using the special device file it created. When your program terminates,
the helper program closes the window an terminates. With X10, the Xn
starbase driver is used.

Hope tha gets you started.