I've always been able to find my answers here in the forum but this one has me stumped.
Attached is a small example of a B4XPages project that needs to be transparent.
The B4XMainPage is transparent but the next pages is not. I have all of the forms set to zero alpha in Designer.
What do I need to do to make all the pages transparent?
Attached is a small example of a B4XPages project that needs to be transparent.
The B4XMainPage is transparent but the next pages is not. I have all of the forms set to zero alpha in Designer.
What do I need to do to make all the pages transparent?
Main:
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.SetFormStyle("TRANSPARENT")
MainForm.Show
Dim PagesManager As B4XPagesManager
PagesManager.Initialize(MainForm)
MainForm.BackColor = fx.Colors.ARGB(0, 0, 0, 0)
' MainForm.WindowLeft = -3920
End Sub
B4XMainPage:
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("MainPage")
introPage.Initialize
B4XPages.AddPage("intro", introPage)
End Sub
Private Sub Button1_Click
B4XPages.ShowPage("intro")
'xui.MsgboxAsync("Hello world!", "B4X")
End Sub
First Page:
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("IntroPage")
B4XPages.GetNativeParent(Me).SetFormStyle("TRANSPARENT")
Root.SetColorAndBorder(0,0,0,0)
'load the layout to Root
End Sub