iOS Question AS Popup Menu in Default app

Alex_197

Well-Known Member
Licensed User
Longtime User
Hi all.

I've just found a vertical menu AS Popup Menu and I have a question-the example is created as B4XPages project but my app is Default app.
Will it work with a regular app?

Thanks
 

Alex_197

Well-Known Member
Licensed User
Longtime User
B4X:
'B4XPage
aspm_main.Initialize(Root,Me,"aspm_main")
'None B4XPage
aspm_main.Initialize(Page1.RootPanel,Me,"aspm_main")
Thanks - it works.

One more question - only label triggers the open menu event? My idea to reproduce B4A Activity.AddMenuItem in my b4i project. So my questions is - if I add an item into toolbar and then click on this item - will it work?
 
Upvote 0

Alexander Stolte

Expert
Licensed User
Longtime User
excuse the question, what type of variable is Page1 in a standard application? I try to try aspm_main. initialize(page1.rootpanel,me,"aspm_main") but generates "unknown member"
Page1 is B4I only. Use B4XPages for your project and look at my example project.
 
Upvote 0
@Alexander Stolte Thanks, I understand, I'm trying to replicate the example with B4XPages in my default application working for B4A but I could not show the menu, the error must be because the Root variable is not initialized for not using B4XPages, can it be shown in a default application?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…