From: <mj...@ga...> - 2005-03-03 00:19:51
|
Alan W. Irwin writes: > On 2005-02-28 17:42-0700 R. V. Urvashi wrote: > >... > > Given a valid subwindow 'n', I am able to get the overlay plot on the > > correct subwindow by doing the following > > > > pls->adv(n) > > pls->vpor(...) > > pls->wind(...) > > ...plot > > > > However, when this is put into a loop and done repeatedly, the > > 'subwindow' member returned via GetCursor does NOT always have the correct > > subwindow index. Could someone please tell me if I'm missing something, or > > if this could this be a bug ? > ... > I believe your above logic should work if you create sub-pages with plssub > (note in CVS I have just changed that documentation to refer to the proper > subpage term rather than sub-window) with one viewport and corresponding > window on each, and if you mouse click _inside_ the viewport/window and not > in the outer areas where the text labels go which is outside the > viewport/window for the subpage. It should also work as written above. Each call to plwind() sets up a PLWindow that contains relative device coordinates & world coordinates for that window, up to a maximum of PL_MAXWINDOWS (64) per page per stream. Is it possible that you've exceeded 64 plots? In that case it wraps around. The current implementation was a quick hack & should probably be replaced with something dynamically (re)allocated. -- Maurice LeBrun mj...@ga... |