Mathias PARNAUDEAU wrote:
> Hi
> 
> I have some menus using MenuItemObject to build them. They are ok. Now I
> want to catch the events on them, for example the "File/Load" menu item.
> Almost all that I read talks about gadtools : is it possible to avoid that
> ? is there a pure MUI management of menus ?
> 
> About my "Load" menu item, I suppose I have to play with
> MUIA_Menuitem_Trigger but after ... how I have to call a function that will
> show the ASL requester ?
> 
> 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:

http://cvs.sourceforge.net/viewcvs.py/yamos/yamos/classes/ReadWindow.c?rev=1.12&view=auto

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.

BTW: If you look at the sources and use parts in your own code, of 
course your code will also be doomed to the GPL :-) (just kidding) :)

cheers,
jens
-- 
Jens Langner                                         Ph: +49-351-4716545
Lannerstrasse 1
01219 Dresden                                [EMAIL PROTECTED]
Germany                                      http://www.jens-langner.de/


------------------------ 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