paragui-users
[Top][All Lists]
Advanced

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

Re: [paragui-users] About selectmenuitem callbacks.


From: Alexander Pipelka
Subject: Re: [paragui-users] About selectmenuitem callbacks.
Date: 25 Jun 2002 18:41:36 +0200

Ok. listbox.cpp won't help you here :))

Use something like this for menuitem callbacks:

PARAGUI_CALLBACK(handle_menuitem) {
  PG_PopupMenu::MenuItem* item = (PG_PopupMenu::MenuItem*)data;
.
.
.
}

Alex

PS: Yes. The C++ static_xxx<XX>(y) would be a better sample.

Am Die, 2002-06-25 um 16.45 schrieb Alexander Pipelka:
> Hurray!!
> 
> My braindamaged macros (like PARAGUI_CALLBACK_SELECTMENUITEM) aren't
> working for class members.
> 
> Please take a look at listbox.cpp in the "test" dir. There's a sample
> that's working :))
> 
> Sorry. I really forgot about that macro definitions.
> 
> Alex
> 
> 
> Am Die, 2002-06-25 um 22.21 schrieb Guillaume Schmid:
> > Hello!
> > 
> > I have a class with methods to handle callbacks.
> > It works pretty well with sliders callbacks and almost everything except
> > a thing : selectmenuitem callbacks.
> > The macro for PARAGUI_CALLBACK is quite simple but the other is mutch
> > more complicated and in my test, it does not work with class methods.
> > I may have done something completely stupid elsewhere with this side
> > effect but it is strange. The compiler chokes on the header file saying
> > that I declare twice the same function.
> > Looking at the macro code, it seems to be the case.
> > Have I done something stupid ?
> > Should it work ?
> > Is this stated somewhere ? If not that may be a good candidate for a
> > faq...
> > 
> > Well, I am puzzled...
> > 
> > a++
> > Guillaume.
> > 
> > 
> > 
> > 
> > 
> > _______________________________________________
> > paragui-users mailing list
> > address@hidden
> > http://mail.freesoftware.fsf.org/mailman/listinfo/paragui-users
> > 
> 
> 
> 
> 
> _______________________________________________
> paragui-users mailing list
> address@hidden
> http://mail.freesoftware.fsf.org/mailman/listinfo/paragui-users






reply via email to

[Prev in Thread] Current Thread [Next in Thread]