rajohn@hubcap.clemson.edu (r alan johnson) (06/02/89)
Ok, I've gotten output in my sun window, by indeed using the window_set(WIN_SHOW
,TRUE,0) stuff, along with the notify_dispatch(). Now, I need to get input from
the window, and I just can't seem to figure it out. (I'm reading 17.6 (?) in
manual BTW) What I've tried:
canvas = window_create(...,WIN_EVENT_PROC,event_proc,...CONSUME_PICK
EVENTS,LOC_DRAG,CONSUME_KBD_EVENTS,ASCII_EVENTS...)
with event_proc(canvas,event)
Canvas canvas;
Event *event;
{
xpos = event_x(event);
ypos = event_y(event);
etc ...
.
.
, where xpos, ypos,etc are global. Now, I have a routine callable from Fortran,
gevent(ixpos,iypos,...) that looks like:
gevent_(ixpos,iypos,...)
int *ixpos,...
{
*ixpos = expos;
.
.
.
}
Shouldn't this provide the Fortran program with the current state of the
positional parameters at the time of the call, as well as any other stuff
I might add? If not, then how, pray tell, does one get this sort of info,
short of doing window_main_loop(), and losing control forever? (at least
from the Fortran calling program)
Thanks for all support and advice!
R. Alan Johnson (rajohn@hubcap.clemson.edu)