🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Core 2 bar widget

    Bug Report
    3
    6
    9.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jpilarski
      last edited by

      The bar widget only renders as a solid color and I can’t manage to get it to output any value change on touch event. Also is it possible to offer control over the center of the slider widget. If the function to change the slider dot color already exists can you please tell me how to do that.

      1 Reply Last reply Reply Quote 0
      • ZontexZ
        Zontex
        last edited by Zontex

        Hello, could you please provide a screenshoot and what version of UIFlow are you using? which device are you using? also, are you using the Offline version or the Online version?

        1 Reply Last reply Reply Quote 0
        • felmueF
          felmue
          last edited by

          Hi @jpilarski

          On an M5Core2 using online UIFlow 1.6.6 below code gives me a Bar which follows the Slider.
          0_1606398423861_UIFlowBarFollowSlider20201126.png

          I don't see a way to change the color of the slider dot. Maybe @Zontex knows if that is already possible and if yes, how.

          Cheers
          Felix

          GPIO translation table M5Stack / M5Core2
          Information about various M5Stack products.
          Code examples

          1 Reply Last reply Reply Quote 0
          • J
            jpilarski
            last edited by jpilarski

            @Zontex
            Thanks @felmue that helps and thanks for sharing that image. I misunderstood the bar widget. I thought I could interact with it in a similar way as you interact with a slider and didn’t realize it was only meant as an visual indicator. I like the minimal look of the bar but I still want the functionality of the slider. It would be great to be able to define the touch dot on the slider either by setting visibility, setting color, and or setting size.

            1 Reply Last reply Reply Quote 0
            • felmueF
              felmue
              last edited by

              Hello @jpilarski

              with some coding you can make a Bar interactive:

              0_1606453555534_UIFlowBarAsSlider20201127.png

              Please note: If you change bar0 x, y, width or height you'll need to adapt the code.

              Cheers
              Felix

              GPIO translation table M5Stack / M5Core2
              Information about various M5Stack products.
              Code examples

              1 Reply Last reply Reply Quote 0
              • ZontexZ
                Zontex
                last edited by

                Hi @felmue thanks for your clear answers, I don't thin it's possible to stretch it longer than what you did, that's pretty much what is possible right now using UIFlow with this bar widget

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post