Wish [B4X] B4A Scrollview2D

Discussion in 'Bugs & wishlist' started by klaus, May 1, 2019.

  1. klaus

    klaus Expert Licensed User

    Two wishes:
    1. Add the ScrollView2D library as a standard B4A library.
    2. Possibility to cast a ScrollView2D object as a B4XView with the ScrollViewOffsetX and ScrollViewOffsetY properties.

    That way we would have bidirectional ScrollViews in all three products and accessible via B4XView for common code.
    This could lead to improvements for the B4XTable which, in my opinion, lacks bidirectional scrolling.

    This, of course, only with an agreement of Informatix, the author of the ScrollView2D library.
    inakigarm, Johan Hormaza and jimmyF like this.
  2. Star-Dust

    Star-Dust Expert Licensed User

    I am sure that a ScrollView 2D library can be created in B4X, a b4xlib library.

    I don't see it so complicated. There are many experts who can implement it without acquiring code from existing libraries.

    If none is available the i add in my SD_XUIView libraries
    Last edited: May 1, 2019
    JOTHA, Filippo and Cableguy like this.
  3. Star-Dust

    Star-Dust Expert Licensed User

  4. klaus

    klaus Expert Licensed User

    Thank you, yes I had seen it.

    But, unfortunately it doesn't really fulfill my wish.
    Having a 'standard ' 2D Scrollview embedded in B4A.
    B4i and B4J have them already as standard.
    And then use it as a B4XView without external libraries.
    For me, B4X lacks an internal 2D Scrollview because of the lack of a 2D Scrollview in B4A.
    I would never use the B4XTable, in its current stage, because it doesn't have vertical scrolling.
    Even xCustomListView would become much more versatile if it had 2D scrolling.

    Anyway thank you for sharing it.
  5. Star-Dust

    Star-Dust Expert Licensed User

    I'm sorry, this can only be done by Erel
    klaus likes this.
  6. Erel

    Erel Administrator Staff Member Licensed User

    There are many extended cross platform views that are implemented in external libraries. XUI Views is such library. I don't think that it is a major drawback. There are actually advantages for such libraries as they are modular and easier to maintain.
  7. AnandGupta

    AnandGupta Active Member Licensed User

    I think Klaus means to say, that you make the 2D Scrollview, even external, and which has possibilities of becoming internal eventually.
    Since you know B4A / B4I etc. in and out, your creation will be more feature rich and powerful to use.
    My humble opinion.


    klaus likes this.
  8. klaus

    klaus Expert Licensed User

    The B4XView object supports scrolling in both directions, but in B4A it has only one depending if you use the vertical or the horizontal ScrollView.
    My wish was to have a 'standard' ScrollView with both directions, and ScrollView2D does it.
    But, it was only a wish.
    Mybee you could add a 2D ScrollView in the XUI Views Library, or add the one from Star-Dust.
    For me, the lack of 2D scrolling in B4X is a major drawback.
  9. Star-Dust

    Star-Dust Expert Licensed User

    Maybe mine isn't the best. But that of @Informatix , with its permission, could be transformed for XUI
  10. klaus

    klaus Expert Licensed User

    @Informatix has published his Java Source code for the ScrollView2D object.
    And my thought was that it might not be complicated for Erel to add it to B4A.
    But, of course with the permission of Informatix.
    Star-Dust likes this.
  11. klaus

    klaus Expert Licensed User

    Hi Star-Dust.
    I am beginning to write my own ScrollView2D, beginning from scratch.
    Thank you for your input, which gave me the push to do it myself.
    I have some more ideads based on this.
    In general, I try to use as less as possible external libraries, bad experiences with VB6 quite some years ago, and therefore what I can do myself I do it.
    My wish was to have a 'standard' B4X 2D Scrollview as a B4XView, but it seems that this will not happen, so we need to do on our own.
    And thank you again for your suggestion.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice