Le 02/03/2005, Jens Langner a �crit:

>> If someone has a source with a clean menu management, I am interested in
>> it :)

> No problem. Just have a look at some parts of the YAM sources:

Ok, I had a look at them ... nice to access open sources sometimes :)

> down there you will find some private MenuChild() and Menuitem() macros 
> which in fact use MenuItemObject internall. then I am specifying some 
> IDs down there and later on I am using a MUIM_Notify on 
> MUIA_Window_MenuAction to call another method or hook. I think that's 
> the cleanest way of handling menus with MUI.

I think the annoying point is that this method seems to be based on gadtools
and so looks like a mixture between MUI and gadtools. And I'm not fond of
using IDs ...

Is there a problem if I use this :

        DoMethod(menu_file_new, MUIM_Notify, MUIA_Menuitem_Trigger,
MUIV_EveryTime,
            app, 2, MUIM_CallHook, &hook_MenuFileNew);

Don't know if MUIA_Window_MenuAction is cleaner ...

-- 
Mathias PARNAUDEAU



------------------------ Yahoo! Groups Sponsor --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/16uqlB/TM
--------------------------------------------------------------------~-> 

Visit http://www.amiga.dk/tumult for MUI-related
information, especially about MUI custom classes. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/MUI/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to