Hi everyone.
To create the side menu, I am testing with B4XPages + B4XDrawer.
Question: Why are button objects only hidden when inside a Panel?
Look in the image, that the Menu button and the Test button are not hidden when the side menu is displayed:
I have same issue with side menu (B4XDrawer). What I did is to put everything (including the button) on a panel and send it to back every time I show the Drawer (hope it can be a solution for you). But then there will be another issue: all views that are located around 5-10dip on the left edge will be "covered" by the Drawer (you can not "see" it) and are not responsive on touch or click.
Thanks for answering.
I forgot to say that I had already done that test, but it causes the events of the objects to not work in their respective pages.
What do I need to make the events work?
B4XMainPage:
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
'Root.LoadLayout("MainPage") '<- - - - - - -
MIzq.Initialize(Me, Root, "MainPage", True)
B4XPages.AddMenuItem(Me, "MENU")
End Sub
MenuIzq:
Public Sub Initialize(CallBackX As Object, Root As B4XView, IdPage As String, InicializarIdPages As Boolean)
'
Drawer.Initialize(CallBackX, "Drawer", Root, 300dip)
Drawer.CenterPanel.LoadLayout(IdPage) '<- - - - - - -
Drawer.LeftPanel.LoadLayout("MenuLeft")
CargaItemMenu("1")
'
B4XPag1.Initialize
If InicializarIdPages Then
CargarIdPages
End If
'
End Sub