Magma Expert Licensed User Longtime User Sep 21, 2017 #1 Hi there... I have many columns - but i want to remove tableview's scrollbar because i want to print the form... (javafx printing) is there a way to remove scrollbar ? Thanks in advance
Hi there... I have many columns - but i want to remove tableview's scrollbar because i want to print the form... (javafx printing) is there a way to remove scrollbar ? Thanks in advance
Erel B4X founder Staff member Licensed User Longtime User Sep 21, 2017 #2 It should be possible with the following CSS: B4X: .table-view *.scroll-bar:horizontal *.increment-button, .table-view *.scroll-bar:horizontal *.decrement-button { -fx-background-color: null; -fx-background-radius: 0; -fx-background-insets: 0; -fx-padding: 0; } .table-view *.scroll-bar:horizontal *.increment-arrow, .table-view *.scroll-bar:horizontal *.decrement-arrow { -fx-background-color: null; -fx-background-radius: 0; -fx-background-insets: 0; -fx-padding: 0; -fx-shape: null; } Source: https://community.oracle.com/thread/2377826?tstart=0 If you have never worked with CSS files then see this example: https://www.b4x.com/android/forum/threads/css-example.35854/#content Upvote 0
It should be possible with the following CSS: B4X: .table-view *.scroll-bar:horizontal *.increment-button, .table-view *.scroll-bar:horizontal *.decrement-button { -fx-background-color: null; -fx-background-radius: 0; -fx-background-insets: 0; -fx-padding: 0; } .table-view *.scroll-bar:horizontal *.increment-arrow, .table-view *.scroll-bar:horizontal *.decrement-arrow { -fx-background-color: null; -fx-background-radius: 0; -fx-background-insets: 0; -fx-padding: 0; -fx-shape: null; } Source: https://community.oracle.com/thread/2377826?tstart=0 If you have never worked with CSS files then see this example: https://www.b4x.com/android/forum/threads/css-example.35854/#content
Magma Expert Licensed User Longtime User Sep 22, 2017 #3 Erel said: It should be possible with the following CSS: B4X: .table-view *.scroll-bar:horizontal *.increment-button, .table-view *.scroll-bar:horizontal *.decrement-button { -fx-background-color: null; -fx-background-radius: 0; -fx-background-insets: 0; -fx-padding: 0; } .table-view *.scroll-bar:horizontal *.increment-arrow, .table-view *.scroll-bar:horizontal *.decrement-arrow { -fx-background-color: null; -fx-background-radius: 0; -fx-background-insets: 0; -fx-padding: 0; -fx-shape: null; } Source: https://community.oracle.com/thread/2377826?tstart=0 If you have never worked with CSS files then see this example: https://www.b4x.com/android/forum/threads/css-example.35854/#content Click to expand... @ Erel I hope this only change the css of specific tableview not from all ... ? Upvote 0
Erel said: It should be possible with the following CSS: B4X: .table-view *.scroll-bar:horizontal *.increment-button, .table-view *.scroll-bar:horizontal *.decrement-button { -fx-background-color: null; -fx-background-radius: 0; -fx-background-insets: 0; -fx-padding: 0; } .table-view *.scroll-bar:horizontal *.increment-arrow, .table-view *.scroll-bar:horizontal *.decrement-arrow { -fx-background-color: null; -fx-background-radius: 0; -fx-background-insets: 0; -fx-padding: 0; -fx-shape: null; } Source: https://community.oracle.com/thread/2377826?tstart=0 If you have never worked with CSS files then see this example: https://www.b4x.com/android/forum/threads/css-example.35854/#content Click to expand... @ Erel I hope this only change the css of specific tableview not from all ... ?
Magma Expert Licensed User Longtime User Sep 22, 2017 #4 Just move it at a new form... and print from there... (changed the style css of form...) Thanks Upvote 0