ThRuST Well-Known Member Licensed User Longtime User Dec 31, 2017 #1 Is it possible to change a scrollbars width? if so how?
Erel B4X founder Staff member Licensed User Longtime User Dec 31, 2017 #2 Which view type are you asking about? Upvote 0
ThRuST Well-Known Member Licensed User Longtime User Dec 31, 2017 #3 In this case I was thinking about TextArea, right side (vertical scrollbar). Perhaps CSSutils can be used. Upvote 0
In this case I was thinking about TextArea, right side (vertical scrollbar). Perhaps CSSutils can be used.
Erel B4X founder Staff member Licensed User Longtime User Dec 31, 2017 #4 Based on this answer: https://stackoverflow.com/questions...omize-javafx-scrollbar-thumb-thickness-by-css Create a css file named style.css: B4X: .scroll-bar:vertical { -fx-pref-width: 30; -fx-padding: 3; } .scroll-bar, .scroll-bar:pressed, .scroll-bar:focused { -fx-font-size: 25; } Put it in the Files folder. B4X: MainForm.Stylesheets.Add(File.GetUri(File.DirAssets, "style.css")) Upvote 0
Based on this answer: https://stackoverflow.com/questions...omize-javafx-scrollbar-thumb-thickness-by-css Create a css file named style.css: B4X: .scroll-bar:vertical { -fx-pref-width: 30; -fx-padding: 3; } .scroll-bar, .scroll-bar:pressed, .scroll-bar:focused { -fx-font-size: 25; } Put it in the Files folder. B4X: MainForm.Stylesheets.Add(File.GetUri(File.DirAssets, "style.css"))
ThRuST Well-Known Member Licensed User Longtime User Dec 31, 2017 #5 CSS is awesome. Thanks for such a clear solution Upvote 0