Hi,I made a rather big change in the way to add commands to menu's. The old way of adding commands to menu is still there, but it had to many drawbacks.
So now it is done using Id's. wxMenu* file_menu = new wxMenu; AddCmdMenu( file_menu, CmdMenu_FileOpen ); etc. This is much easier to use, and from XRC files it works fine too. E.g. wxArt2D\art\resources\a2dEditorFrame.xrc This makes it easier to make customizable drawing widgets.The command id is coupled to a OnMenu function is a commandprocessor, and from there it is doing the submits of the right commands or calls the function needed.
void a2dDocumentCommandProcessor::OnMenu( wxCommandEvent& event ) void a2dCentralCanvasCommandProcessor::OnMenu( wxCommandEvent& event ) Also search all a2dMenuIdItem's, you find things like:const a2dMenuIdItem CmdMenu_FileClose( wxT("CmdMenu_FileClose"), wxT("&Close"), wxT("Close current file") );
So all a menu needs is predefined, but in you XRC files, you can change language and such. You can use this new system yourself in a derived command processor the same way, and if needed overrule command id implementation where needed.
Read more on this here: http://www.wxart2d.org/moin/wxArt2dCommandProcessing#Menuandcommandshttp://www.wxart2d.org/moin/wxArt2dCommandProcessing#Menuandcommands Klaas -- Unclassified ------------------------------------------------------------------------------------------------------------ Disclaimer:If you are not the intended recipient of this email, please notify the sender and delete it. Any unauthorized copying, disclosure or distribution of this email or its attachment(s) is forbidden. Thales Nederland BV will not accept liability for any damage caused by this email or its attachment(s). Thales Nederland BV is seated in Hengelo and is registered at the Chamber of Commerce under number 06061578.
------------------------------------------------------------------------------------------------------------
<<attachment: db348.vcf>>
------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf
_______________________________________________ Wxart2d-users_dev mailing list Wxart2d-users_dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev