Italian [B4J] ScrollPane

Discussion in 'Italian Forum' started by moore_it, Aug 28, 2018.

  1. moore_it

    moore_it Active Member Licensed User

    Ciao a tutti,

    mi piacerebbe sapere come funzione l'InnerNode di uno ScrollPane in fatto di dimensioni nel resizing.
    Io non l'ho capito.

    Ringrazio per le dritte.
     
  2. Cableguy

    Cableguy Expert Licensed User

    I cannot write Italian but I think I have understood your question…
    SO here's my explanations in the form of a small execise…

    Take two (2) A4 paper sheets, and in one of them, take out a small rectangle…
    you end up with a "window" in your paper sheet… This is your scroll-pane.
    Now put it over the other sheet of paper… you will only see a part of it. By default, you will see the upper-left part. This is your inner-panel, where you will put all your other views.
    The Inner panel width is directly related to the scrollview, but not the height…
    Your visual part of the scroll view may be 300 in height but still accomodate a 3000 high inner panel.
     
  3. moore_it

    moore_it Active Member Licensed User

    Thanks Cableguy, but my question is on the resizing of the scrollpane.
    For example i have a scrollpane.width = 500px and a innerpane.width = 500px-scroll bar width (eg. 16px)
    If i draw the border of innerpane the right border not compare at (500-16) why ?
     
  4. moore_it

    moore_it Active Member Licensed User

    see images
     

    Attached Files:

  5. moore_it

    moore_it Active Member Licensed User

    and at last without scrollbar
     

    Attached Files:

  6. Cableguy

    Cableguy Expert Licensed User

    It's been a while since I used a scrollpane, but I remember having as much dificculties as you…
    I think is a matter of padding, or you do like I did… trial and error, placing a 10x10 button and Moving it to the left up to the point where, it went of screen…
    Also, Klaus has a few methods available to tweak scrollpanes, that could be of help.
     
    Peter Simpson likes this.
  7. moore_it

    moore_it Active Member Licensed User

    and source
     

    Attached Files:

  8. Cableguy

    Cableguy Expert Licensed User

    Further discussion should be taken outside the Italian Sub-Forum... I cannot help more today, I'm at my day job, no other resources than the forum
     
    Peter Simpson likes this.
  9. moore_it

    moore_it Active Member Licensed User

    Ho trovato la soluzione.
    Per semplicità vi passo il codice.
    Grazie a tutti.
     

    Attached Files:

    LucaMs and sirjo66 like this.
Loading...
  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