Very impressive, thanks
Btw I tried to add you to Facebook but I couldn't find you. mind if I add you? my name is Roger Lindfors (rogerlindfors@hotmail.com). I'll delete this line a little later.
Thank you Daestrum. Do you know if visible property can be used instead because the solution to open a new form in this case means it have the second form minimized and that's not really what I want. I've tried the alpha way but the form turned white at alpha = 0. Cableguy might post an example if we're lucky
Since I used an AnchorPane in Scene builder 2 I had to do it like this, based on your guidande:
B4X:
Dim MainForm As Form
Dim MainPanel As AnchorPane
MainForm.RootPane.LoadLayout("Form1") 'Load the layout file.
MainForm.SetFormStyle("TRANSPARENT")
MainForm.Show
MainForm.BackColor = fx.Colors.Transparent
MainForm.RootPane.SetAlphaAnimated(0, 0)
MainPanel.Parent.Alpha = 1
Just change the MainPanel.Parent.Alpha to transparent range 0 - 1 (i.e. 0.5 for 50% transparency).
Please note that Form1 is a FXML file.
Many thanks Cableguy. I wouldn't have solved it without your 'hints'
Btw, the AnchorPane should have the name MainPanel under Properties/Id field in Scene builder 2 for this example to work.
I hope this will help other wizards in this community