Quoting Mike Nordell <[EMAIL PROTECTED]>:

> 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

Reply via email to