B4J Question [SOLVED] Can i remove horizontal scrollbar at tableview

Magma

Expert
Licensed User
Longtime User

Erel

B4X founder
Staff member
Licensed User
Longtime User
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

Magma

Expert
Licensed User
Longtime User
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

@ Erel I hope this only change the css of specific tableview not from all ... ?
 
Upvote 0
Top