Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
Adding/removing menu items [resolved]
(1/1)
stardust:
Hi,
how can I add/remove menu items in the main menu bar when attaching/detaching a plugin?
Can you give me some grep patterns that will lead me to respective places in the c:b sources that do this, too? I.e. Class/method/event names.
Is there anything special to consider beside doing the menu changes and notifying the AUI?
Thanks
killerbot:
take a look at some old tutorial I wrote :
http://wiki.codeblocks.org/index.php?title=Creating_a_Plug-in_which_modifies_CB%27s_Menus
It is outdated but still might be of help though ...
stardust:
Thanks,
I missed the project wizard's checkboxes :oops:
http://wiki.codeblocks.org/index.php?title=Creating_a_Plug-in_which_modifies_CB%27s_Menus#Adjusting_the_.22Edit.22_menu
States
--- Code: ---int pos = menuBar->FindItem(_("Edit"));
--- End code ---
but I had to use
--- Code: ---int pos = menuBar->FindMenu(_("Edit"));
--- End code ---
I guess this is a misstake in the wiki. I did not change the wiki because I am a c::b greenhorn and not 100% sure about that ;-)
Navigation
[0] Message Index
Go to full version