Page 1 of 1

Missing popupmenu include file (RESOLVED)

Posted: Fri Aug 10, 2012 7:05 pm
by xenic
I was going to switch Dopus4 sources from using old (custom generated) includes for popupmenu.library to using the newer popupmenu.library includes in the OS4 SDK. However it appears that SDK:Include/include_h/libraries/ is misssing the popupmenu library file: popupmenu.h. Can this be fixed for the next SDK so that programs don't need to use their own includes for popupmenu.library?

Re: Missing popupmenu include file

Posted: Fri Aug 10, 2012 8:11 pm
by ssolie
You should avoid using popupmenu.library directly. Instead, try to use the new popupmenu.class instead.

Re: Missing popupmenu include file (SOLVED)

Posted: Fri Aug 10, 2012 11:51 pm
by xenic
ssolie wrote:You should avoid using popupmenu.library directly. Instead, try to use the new popupmenu.class instead.
If I write a new program, I will. However, some old programs like Dopus4 aren't Reaction and use the library directly. Shouldn't any library that is included in OS4 have the full set of required files included in the SDK? I see with closer examination that the other popupmenu includes apply to popupmenu.class so we actually need all the popupmenu.library includes in order to use the library. I'll just continue to use the old popupmenu.library includes with Dopus4. I would also like to point out that if OS4 popupmenu.library is changed in a way that is not backward compatible or is eliminated, some programs like Dopus4 will no longer work.

Re: Missing popupmenu include file (SOLVED)

Posted: Sat Aug 11, 2012 11:01 am
by chris
xenic wrote: If I write a new program, I will. However, some old programs like Dopus4 aren't Reaction and use the library directly.
You can still change them to use the class. I've not used the library so don't know how much it differs, but with the class you just construct a menu tree and then call the method PM_OPEN when you want it to appear. It's not linked to window.class (or any other BOOPSI/Reaction gadgetry) at all.