Bonjour!!
Here's the situation, if I have a regular button / label / textbox at (for example) the center on the screen and non-visible LibGDX surface below, the behavior is as follows:
With a non-transparent view lGdxSurface.InitializeView2(Config, "LG")
- No problem, it behaves as expected
With a transparent view lGdxSurface.InitializeTransparentView(Config, "LG")
- The button will stay behind, BringToFront just doesn't work.
Additional notes:
- I tried myButton.BringToFront with CallSubUI as well, no success.
- Initializing in a certain order (libGDX before Button) doesn't work either, plus even if it did, it's not the solution I'm looking for.
Attached, the best solution I could come-up with.
Here's the situation, if I have a regular button / label / textbox at (for example) the center on the screen and non-visible LibGDX surface below, the behavior is as follows:
B4X:
Sub myButton_Click
'Toggle LibGDX visibility on and off
lGdxSurface.Visible = (lGdxSurface.Visible == False)
'Display the button on top
myButton.BringToFront
End Sub
With a non-transparent view lGdxSurface.InitializeView2(Config, "LG")
- No problem, it behaves as expected
With a transparent view lGdxSurface.InitializeTransparentView(Config, "LG")
- The button will stay behind, BringToFront just doesn't work.
Additional notes:
- I tried myButton.BringToFront with CallSubUI as well, no success.
- Initializing in a certain order (libGDX before Button) doesn't work either, plus even if it did, it's not the solution I'm looking for.
Attached, the best solution I could come-up with.
Attachments
Last edited: