LucaMs Expert Licensed User Longtime User May 2, 2018 #1 Code: Public Sub SetVerticalScrollBarEnabled(Enabled As Boolean) Dim r As Reflector r.Target = sv r.RunMethod2("setVerticalScrollBarEnabled", Enabled, "java.lang.boolean") End Sub Post #3: LucaMs said: I named the routine as the method used but it would be better: SetVerticalScrollBarVisibility. Click to expand... Last edited: May 2, 2018
Code: Public Sub SetVerticalScrollBarEnabled(Enabled As Boolean) Dim r As Reflector r.Target = sv r.RunMethod2("setVerticalScrollBarEnabled", Enabled, "java.lang.boolean") End Sub Post #3: LucaMs said: I named the routine as the method used but it would be better: SetVerticalScrollBarVisibility. Click to expand...
Harris Expert Licensed User Longtime User May 2, 2018 #2 LucaMs said: Code: Public Sub SetVerticalScrollBarEnabled(Enabled As Boolean) Dim r As Reflector r.Target = sv r.RunMethod2("setVerticalScrollBarEnabled", Enabled, "java.lang.boolean") End Sub Click to expand... A bit confused here.. Is this the way it works - or you wish to make it work this way? If a xCustomListView has more items than one can see - why disable it? The scrollview is enabled by default?
LucaMs said: Code: Public Sub SetVerticalScrollBarEnabled(Enabled As Boolean) Dim r As Reflector r.Target = sv r.RunMethod2("setVerticalScrollBarEnabled", Enabled, "java.lang.boolean") End Sub Click to expand... A bit confused here.. Is this the way it works - or you wish to make it work this way? If a xCustomListView has more items than one can see - why disable it? The scrollview is enabled by default?
LucaMs Expert Licensed User Longtime User May 2, 2018 #3 Harris said: Is this the way it works - or you wish to make it work this way? Click to expand... I'm suggesting to add the method I posted. Its name confuses; it does not lock the scrollbar but set it to visible/invisible. I named the routine as the method used but it would be better: SetVerticalScrollBarVisibility.
Harris said: Is this the way it works - or you wish to make it work this way? Click to expand... I'm suggesting to add the method I posted. Its name confuses; it does not lock the scrollbar but set it to visible/invisible. I named the routine as the method used but it would be better: SetVerticalScrollBarVisibility.
Harris Expert Licensed User Longtime User May 2, 2018 #4 LucaMs said: I'm suggesting to add the method I posted. Its name confuses; it does not lock the scrollbar but set it to visible/invisible. I named the routine as the method used but it would be better: SetVerticalScrollBarVisibility. Click to expand... Ok, I see. But why? Is the handle bar so intrusive? One only sees it when one scrolls... I am missing something here obviously - yet curious.
LucaMs said: I'm suggesting to add the method I posted. Its name confuses; it does not lock the scrollbar but set it to visible/invisible. I named the routine as the method used but it would be better: SetVerticalScrollBarVisibility. Click to expand... Ok, I see. But why? Is the handle bar so intrusive? One only sees it when one scrolls... I am missing something here obviously - yet curious.
LucaMs Expert Licensed User Longtime User May 2, 2018 #5 LucaMs said: Its name confuses; it does not lock the scrollbar but set it to visible/invisible. Click to expand... Last edited: May 2, 2018
LucaMs said: Its name confuses; it does not lock the scrollbar but set it to visible/invisible. Click to expand...
LucaMs Expert Licensed User Longtime User May 2, 2018 #6 Harris said: But why? Is the handle bar so intrusive? One only sees it when one scrolls... I am missing something here obviously - yet curious. Click to expand... I added to my project a xCLV which has a transparent background; the vertical scroll bar is ugly, here [I have already added that method to my version of xCLV, of course] Last edited: May 2, 2018
Harris said: But why? Is the handle bar so intrusive? One only sees it when one scrolls... I am missing something here obviously - yet curious. Click to expand... I added to my project a xCLV which has a transparent background; the vertical scroll bar is ugly, here [I have already added that method to my version of xCLV, of course]
Erel B4X founder Staff member Licensed User Longtime User May 2, 2018 #7 Why are you using Reflector? Code: Dim jo As JavaObject = sv jo.RunMethod("setVerticalScrollBarEnabled", Array(False))
Why are you using Reflector? Code: Dim jo As JavaObject = sv jo.RunMethod("setVerticalScrollBarEnabled", Array(False))
LucaMs Expert Licensed User Longtime User May 2, 2018 #8 Erel said: Why are you using Reflector? Click to expand... Because I did not think, I just searched and the first piece of code I found...
Erel said: Why are you using Reflector? Click to expand... Because I did not think, I just searched and the first piece of code I found...
Erel B4X founder Staff member Licensed User Longtime User May 2, 2018 #9 LucaMs said: I just searched and the first piece of code I found Click to expand... This is a valid reason.
LucaMs said: I just searched and the first piece of code I found Click to expand... This is a valid reason.