RE: WinAPI "LoadMenuA"? [Message from Kat]
- Posted by Travis Beaty <travisbeaty at arn.net> Apr 28, 2001
- 419 views
From: "Kat" <theAddress at nonya.com> To: travis Beaty <travisbeaty at arn.net> Subject: (Fwd) RE: WinAPI "LoadMenuA"? [A forwarded message from Kat. She has undertaken some "mining" endeavor which is preventing her from posting to the list at the moment.] On 27 Apr 2001, at 0:25, Al Getz wrote: > Euman wrote: <snip> > > > You cant use CreateMenu() and SetMenu() ? > > > You might want to look at LoadMenuIndirect() also. > > > > <snip> > > I guess i misunderstood, i thought you were trying to load > a menu resource, which is what LoadMenu would be used for. > I wasnt really sure if you might just want to create your > own menu. It sound like, to me, that he is trying to emplement a dynamic menu system like mirc has. Since Eu is scripted, not compiled, this should be a valid option. Along the lines of: if var then loadmenu(windowhandle,menuname,menufileX) else loadmenu(windowhandle,menuname,menufileZ) end if which would load and use the menu appropriate for the current state of affairs in the application. In mirc, i use: Color1 Menu:/.load -pn popups\colorpops1.mrc | /echo $active 11,11..11,12 Color1 Script Menu Loaded 11,11.. Color2 Menu:/.load -pn popups\colorpops2.mrc | /echo $active 11,11..11,12 Color2 Script Menu Loaded 11,11.. Botpops Menu:/.load -pn popups\botpops.mrc | /echo $active 11,11..11,12 Botpops Menu Loaded 11,11.. and clicking on one of those lines loads up and displays a new menu for that same window. Since mirc is scripted, one can also write script to change the menus and reload them, and even single lines in the menu can be changed **by the menu itself**, based on vars. I still say Rob would do well to merge into Eu some of the scripting abilities of mirc. Particularly that "goto" command! Mirc could benefit tremendously by Eu too, so it's not a one-way merge street. The two together could blow all other scripting languages out of the universe, and most compiled languages with them. Kat