Thanks for the reply Erel. I managed to get a class menu working with multiple activities so each menu option opens a new activity with associated views.
I got side-tracked on the rest of the project which is now going well and now can return to 1 last problem with the class menu.
My problem is that when the menu is opened on top of the activity, I can see all the view items through the menu - they are on top of the menu items. I can't see how to stop that.
Each activity calls the class menu using code like this:
Sub Activity_Resume
' Add the menu.
Dim AppMenu As ClassMenu
AppMenu.Initialize(Activity, "Weather") ' this calls ClassMenu.Initialize()
' Add an EditText view
txtWindSpeed.Initialize("")
Activity.AddView(txtWindSpeed, textLeft, lbl1.Top, textWidth, FieldHeight)
txtWindSpeed.InputType=txtWindSpeed.INPUT_TYPE_NUMBERS ' this allows only integers.
'etc
End Sub
I have tried 2 things to fix this but both cause other side effects.
1) I tried to dim and init the menu after the EditText (and the rest of the views). This causes the menu to now appear on top of the EditText and the EditText doesn't show through. However, I cannot then action the EditText - the keyboard doesn't appear when I click on it.
2) I put the menu back before the initing of the rest of the views and played around with BringToFront and SendToBack. The AppMenu doesn't have a BringToFront method so I sent all the other controls to the back. That stops them showing through the menu, but again I cannot action the views if they are at the back.
I figure I must be doing something simple wrong - I can't imagine everyone else would allow this. I am considering maybe I need to have a panel and hide the info behind it but that seems like a nasty workaround - probably there is a better way.
How does one ensure the Views can stay behind the class menu but still be usable?
Also I don't think I really understand how Views are 'layered' if created entirely in code. Does any control initialised (or maybe added with addview) always appear on top of a previously initialised or added view?
Thanks,
Dave