[Gambas-user] Creating Actions at runtime

Me adamnt42 at gmail.com
Fri Sep 21 04:19:32 CEST 2018


I am trying to add a new menu at runtime. That works fine and it gets added into the Action.List. However, the menu has a shortcut and that doesn't get added into the shortcuts managed by Action.Configure.
The code is pretty straightforward:
	Dim TestMenu as Menu

	TestMenu = New Menu(mnuFile)
	With TestMenu
		.Name="mnuTest"
		.Caption="Test Action"
		.ShortCut="CTRL+T"
		Action="MENU.Test"
	End With

Any clues?
b
-- 
Me <adamnt42 at gmail.com>


More information about the User mailing list