Tayfur Well-Known Member Licensed User Longtime User Nov 6, 2018 #1 Now; scroll autoshowing on TreeTableView how can i "scroll.enable=false" for TreeTableView
Erel B4X founder Staff member Licensed User Longtime User Nov 7, 2018 #2 Do you want to prevent the user from vertically scrolling the TreeTableView? Upvote 0
Tayfur Well-Known Member Licensed User Longtime User Nov 7, 2018 #3 Erel said: Do you want to prevent the user from vertically scrolling the TreeTableView? Click to expand... Yes; Same time i want to show/hide scroll.enable=false scroll.visible=false Upvote 0
Erel said: Do you want to prevent the user from vertically scrolling the TreeTableView? Click to expand... Yes; Same time i want to show/hide scroll.enable=false scroll.visible=false
Erel B4X founder Staff member Licensed User Longtime User Nov 7, 2018 #4 There is no proper way to do it. This code will hide the scrolls: Code: Copy Dim jo As JavaObject = TreeTableView1 Dim scrolls() As Object = jo.RunMethodJO("lookupAll", Array(".scroll-bar")).RunMethod("toArray", Null) For Each scroll As Node In scrolls scroll.Visible = False scroll.Alpha = 0 Next However it is not perfect and the table is still scrollable. You can probably improve it with a custom CSS file. (https://bugs.openjdk.java.net/brows...uetabpanels:comment-tabpanel#comment-13725534) Upvote 0
There is no proper way to do it. This code will hide the scrolls: Code: Copy Dim jo As JavaObject = TreeTableView1 Dim scrolls() As Object = jo.RunMethodJO("lookupAll", Array(".scroll-bar")).RunMethod("toArray", Null) For Each scroll As Node In scrolls scroll.Visible = False scroll.Alpha = 0 Next However it is not perfect and the table is still scrollable. You can probably improve it with a custom CSS file. (https://bugs.openjdk.java.net/brows...uetabpanels:comment-tabpanel#comment-13725534)
Tayfur Well-Known Member Licensed User Longtime User Nov 8, 2018 #5 Erel said: There is no proper way to do it. This code will hide the scrolls: Code: Copy Dim jo As JavaObject = TreeTableView1 Dim scrolls() As Object = jo.RunMethodJO("lookupAll", Array(".scroll-bar")).RunMethod("toArray", Null) For Each scroll As Node In scrolls scroll.Visible = False scroll.Alpha = 0 Next However it is not perfect and the table is still scrollable. You can probably improve it with a custom CSS file. (https://bugs.openjdk.java.net/browse/JDK-8090721?focusedCommentId=13725534&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13725534) Click to expand... great ; Thanks @Erel Upvote 0
Erel said: There is no proper way to do it. This code will hide the scrolls: Code: Copy Dim jo As JavaObject = TreeTableView1 Dim scrolls() As Object = jo.RunMethodJO("lookupAll", Array(".scroll-bar")).RunMethod("toArray", Null) For Each scroll As Node In scrolls scroll.Visible = False scroll.Alpha = 0 Next However it is not perfect and the table is still scrollable. You can probably improve it with a custom CSS file. (https://bugs.openjdk.java.net/browse/JDK-8090721?focusedCommentId=13725534&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13725534) Click to expand... great ; Thanks @Erel