Subject: Re: Modal Dialog with XAP_Frame?
From: Dom Lachowicz (dominicl@seas.upenn.edu)
Date: Mon May 28 2001 - 15:09:21 CDT
Quoting Mike Nordell <tamlin@algonet.se>:
> Andrew Dunbar wrote:
> >
> > I don't know much about Abi's internals and I can't see an
> > obvious and elegant way to get the correct Frame pointer from
> > inside an ie_Exp or ie_Imp. They are only passed a pd_Document
> > pointer and this doesn't seem to be enough.
>
> Perhaps not too elegant, but hopefully working:
>
> The document contains a pointer to a XAP_App, and the matching member
> function getApp(). XAP_App has a member function findFrame().
>
> /Mike
Mike, Andrew, you should be able to do something like this:
XAP_App * pApp = XAP_App::getApp();
XAP_Frame *pFrame = pApp->getLastFocussedFrame ();
// do stuff ...
God I wish for my DNS to update,
Dom
This archive was generated by hypermail 2b25 : Fri Jun 01 2001 - 17:36:50 CDT