B4J Question [SOLVED] How to make ScrollPane transparent

Star-Dust

Expert
Licensed User
Longtime User
Hi,

When I insert a ScrollPane, unlike a Pane, it is not transparent and covers what is underneath. I need you to see what's underneath. With Pane I would change the style or assign a BXView to change the background to transparent.
All this is not possible with ScrollPane, or at least I have not succeeded.

Do you have any suggestions?

PS. I attach a small example of a Layout to which I add a ScrollPane and the color of the background below covers me.
 

Attachments

  • TestScrollPane.zip
    973 bytes · Views: 215

Jorge M A

Well-Known Member
Licensed User
Is that what you need?
Look at the attached project, please.
CSS:
ScrollPane1.Style="-fx-background:transparent;-fx-background-color:transparent;"

1594073161628.png
 

Attachments

  • TestScrollPaneTransparent.zip
    1.5 KB · Views: 212
Upvote 0

Star-Dust

Expert
Licensed User
Longtime User
Thanks, I solved it. šŸ˜šŸ˜
This is the end result (The ScollPane houses the buttons)

1594096272461.png
 
Upvote 0
Top