Scrollable "Area"

  1. 3 months ago

    Dave S

    Jul 8 San Diego, California USA

    what is the best method to create a "scrollable" area (win/mac)
    I have various areas of the screen the remain fixed, but another area that contains around 30 custom controls in a very specific layout. On some screens that layout may exceed the height and/or width of the screen.

    My first thought is a canvas that is big enough to hold all the controls in their required layout (about 2000 x 1600 I'm guessing)
    this and a set of scrollbars then embedded in a 2nd canvas (this one sized to what ever the screen will hold)
    and set the top/left of the 1st canvas based on the scrollbars

    Anyone have a better idea?

    Note : the controls on the 1st Canvas ARE clickable , so its not just a "drawing"

  2. Christoph D

    Jul 8 Pre-Release Testers, Xojo Pro

    For macOS you can use NSScrollView
    There is a class somewhere here with all the declares for doing this.

  3. Dave S

    Jul 9 San Diego, California USA

    @Christoph Dnbsp;Vocht For macOS you can use NSScrollView

    but not for windows.....

  4. Alexander v

    Jul 9 Europe (Houten, The Netherland...

    Container(s) with scrollbar. I created a windows screen with a fixed header and a scrollable area below holding controls.
    Easy to implement with natural scrolling.

  5. Dave S

    Jul 9 San Diego, California USA

    @Alexander vnbsp;der Linden Container(s) with scrollbar. I created a windows screen with a fixed header and a scrollable area below holding controls.
    Easy to implement with natural scrolling.

    pretty much what I had described above.. thanks

  6. Alexander v

    Jul 9 Europe (Houten, The Netherland...

    @Dave S pretty much what I had described above.. thanks

    -image-

    This is how it looks in the IDE.

  7. Joost R

    Jul 9 Pre-Release Testers, Xojo Pro The Netherlands

    @Alexander vnbsp;der Linden Container(s) with scrollbar. I created a windows screen with a fixed header and a scrollable area below holding controls.
    Easy to implement with natural scrolling.

    So did I.

or Sign Up to reply!