On 8/3/06, Thomas Dickey <address@hidden> wrote:
On Wed, 2 Aug 2006, Sadrul H Chowdhury wrote:
<snip>
> (2) I have several WINDOWs on screen, each on its own PANEL. I want to dump
> the contents of the screen in text/HTML format on some event. Is there a way
> I can get the contents of (row, column) without knowing what window/panel is
> being displayed at that position? I am aware of inch-family of functions.
> But they ask for a WINDOW, and I am not sure which WINDOW is on top at that
> moment at that position.
your application has to keep track of that.
I tried winch()ing from "newscr" (from
William McBrine's suggestion), and it worked!
> (3) To deal with mouse-events, when I click on a position, is there any way
> to know which PANEL/WINDOW is being shown at that position? This would solve
> (2) I think.
no - again, your application has to keep track of the window that
corresponds to a given location.
Ok. I am going to try to see if I can make it happen.