B4J Question Change the width of the scrollpane scroll bars?

MrKim

Well-Known Member
Licensed User
Longtime User
How can I change the width of the scrollpane scroll bars? As you can see from the picture the default is about half or less of a typical windows scrollbar. It is extremely difficult to use.
The one I am using for comparison it the B4J IDE.

Thanks for your help.

1590743665849.png
 

MrKim

Well-Known Member
Licensed User
Longtime User
Add this to the extra CSS property:
B4X:
-fx-font-size: 20;
Well, that worked, unfortunately it appears to have also affected all of the other views that were on that Scrollpane. Did I just learn that views inherit all of the properties of their parent?

EDIT: It appears that it was easy to fix by setting the same property on ScrollPane.InnerNode Pane to the smaller font size.
B4X:
Sub Class_Globals
    Private MachinesSP As ScrollPane
    Private MachinesP As Pane
...
...

            MachinesP.Initialize("")
            MachinesSP.InnerNode = MachinesP
            MachinesP.Style = "-fx-font-size: 12;"

1590910526156.png
 
Last edited:
Upvote 0
Top