Re: Popup menu selections



On Tue, 2005-05-31 at 15:52 -0400, Bob Huston wrote:
> I tried to have the call back for the menu item be a method of the
> "pDropIn" class,  but the compiler was not happy

I guess that pDropIn is a pointer to an instance, not a class, so,

> with anything like: SigC::slot(*this, pDropIn->PopUPCallback() )

SigC::slot(*pDropIn, &YourDropIn::PopUPCallback);

is more likely to work.

You might also investigate SigC::bind(). And it's generally best to use
the newer 2.4/2.6 API.

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]