|
From: Ethan M. <merritt@u.washington.edu> - 2009-02-02 17:38:05
|
On Sunday 01 February 2009 15:41:16 Petr Mikulik wrote: > > Could the size and position of the x11 plot window be determined in a > > similar manner (on the gnuplot end)? Of course, no pause would be > > required, but I assume some gnuplot command would be needed. > > > > Either that or could another internally-maintained variable be created > > to hold a window's x11 id? ... if so would this work for wxt as well? > > Automatic varible > GPVAL_TERM_WINDOWID > could be filled after each "plot". > > How can this be done? Could x11.trm read it? Or should this be obtained via > gp_exec_event? I think that it is best done by gnuplot_x11 at the time the plot window is first opened. The information can be sent back to gnuplot proper by calling gp_exec_event(). I do not know exactly what call into the X libraries would need to be added in gplt_x11.c, but there must be one. On the receiving end, it just needs another case statement in mouse.c (do_event). That part is trivial. -- Ethan A Merritt Biomolecular Structure Center University of Washington, Seattle 98195-7742 |