Vertical ioSSlider

  1. last week

    Charles W

    Sep 12 Pre-Release Testers, Xojo Pro Virginia

    This is a dumb newbie question: how do I change the orientation of an ioSSlider so that it's vertical rather than horizontal? I must be missing something obvious.
    Thanks!

    It seems UISlider doesn't have a vertical setting, and what native developers have been doing is some kind of rotation trick on it: https://stackoverflow.com/a/8118073

  2. Tim P

    Sep 12 Pre-Release Testers, Xojo Pro Answer

    It seems UISlider doesn't have a vertical setting, and what native developers have been doing is some kind of rotation trick on it: https://stackoverflow.com/a/8118073

  3. Charles W

    Sep 12 Pre-Release Testers, Xojo Pro Virginia

    Wow, thanks @Tim P. That seems a massive oversight in the UI kit, but why would anyone ever want a vertical slider, I guess.

  4. 6 days ago

    Edwin v

    Sep 14 The Netherlands
    Edited 6 days ago by Edwin v

    @Charles Weger This is a dumb newbie question:

    There are no dumb questions. :)
    Just as explained in a recent Xojo Blog

    @Charles W but why would anyone ever want a vertical slider

    Maybe if you want to have something like an audio fader. Or any fader for that matter. On most audio consoles the audio fader is vertical. I have some apps that control digital audio mixers. Those sliders are vertical. Or, what about apps that can dim lights in your living room. Sure, it can be horizontal. But vertical sliders seem more intuitive, I think, since hardware sliders are usually oriented that way.
    I would choose to use a canvas and create a slider myself. That way you have more control over the look and feel. And, you can theme it better.

  5. 5 days ago

    Charles W

    Sep 14 Pre-Release Testers, Xojo Pro Virginia

    @Edwin vden ;Akker: yes, I wound up doing exactly that; I created a subclass of canvas and made a fader that looks and works exactly how I want. I've done that a lot in desktop apps, I just figured there would be a better native control somewhere.

    And as far as audio consoles go, when I started as a broadcast engineer many years ago, the faders were rotary. The linear fader hadn't been invented yet. And stage lighting dimmers were giant rheostats with big levers that looked like they came out of a Frankenstein movie.

or Sign Up to reply!