Hi agraham,Your naming is wrong
B4X:Sub menuFileExport_Action Log("Clicked Menu File > Sub Menu Export > Sub Menu Item HTML...") End Sub
Sub Process_Globals
Private fx As JFX
Private MainForm As Form
Private menuFileClose As MenuItem
Private menuitemFileExportHTML As MenuItem
End Sub
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.RootPane.LoadLayout("1") 'Load the layout file.
MainForm.Show
End Sub
Sub menuFileClose_Action
MainForm.Close
End Sub
Sub menuitemFileExportHTML_Action
Log("Clicked Menu File > Sub Menu Export > Sub Menu Item HTML...")
End Sub
Indeed and many thanks for checking as well.Hmm! I see what you mean. Sorry I didn't read carefully enough and missed the sub-menu. It looks like a Designer LoadLayout initialize bug. menuFileExportHTML seems to have been initialized with its parent name.
You can see this by adding another sub-menu at the level of menuFileExportHTML. Both of them raise an event named menuFileExport_Action.
One for Erel I think.