• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
GUI-O Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login

More information and examples of CB widget

Scheduled Pinned Locked Moved
Comments & Feedback
2
5
328
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.
  • V
    VNB
    last edited by 17 Aug 2023, 20:30

    Where can I find more details or examples using the CB widget? I have tried the Manual, Videos and Forms. I have questions like:

    1.) The default CB specifies an IP: qrc:///gui/graphics/handle_icon.svg
    but I can’t find that svg file anywhere on the internet. I assume it generates the round “knob” located on arc of the CB widget correct?

    2.) Per the manual it is the “Handle image file” correct?

    3.) Can I use “any” image file including png files if I’m not concerned about scaling?

    4.) The HAW and HAH change the size of the knob but why doesn’t HAR do anything? It can even be set to zero with no affect.

    5.) If I don’t want that “knob” just setting HAW or HAH to zero seems to work but is it better to set both to zero?

    6.) If I make the Needle visible (SHN:1) and set the Needle Thickness to 3 (NT:3) the needle size is correct for my application but it has a very large center circle (where it pivots). Can I eliminate that circle or at least make it smaller?

    K 2 Replies Last reply 18 Aug 2023, 15:28 Reply Quote 0
    • K
      kl3m3n @VNB
      last edited by 18 Aug 2023, 15:28

      @VNB Hi!

      1.) qrc means that the image is taken from the app's internal resources. This is the default. You can change this by specifiying the valid image path (either local or web).

      2.) Yes, the default handle. As stated, you can specify your own.

      3.) Yes, you can use any image.

      4.) The HAR parameter is the handle radius. It only takes effect if you unload the handle image by specifiying empty path (IP:"").

      5.) Unload the image to hide the knob. Then you can use the simple "graphical" knob.

      6.) Currently no. But give me a couple of days and I will add a feature to control the central circle without relying on needle thickness.

      I hope this answers your questions.

      Regards,
      kl3m3n

      1 Reply Last reply Reply Quote 0
      • K
        kl3m3n @VNB
        last edited by kl3m3n 20 Aug 2023, 19:14

        @VNB
        GUI-O version 1.0.51 is now available, which (among other improvements) introduces three new properties for the CB widget:

        • CHAR (radius of the central handle). The default value is -1, which maintains backward compatibility, relying on needle thickness. If you set this to non-zero value, it will have precedence. Example command: HAR:2, which makes the central handle radius as 2% of the screen width.

        • LT (thickness of the tick lines). The default value is -1, which maintains backward compatibility, relying on needle thickness. If you set this to non-zero value, it will have precedence. Example command: LT:2, which makes the ticks thickness as 2% of the screen width.

        • ROL (rotate labels). The default value is 1, which means that the labels are rotated in the same manner as in previous versions. If you set this to 0, the labels will have horizontal orientation.

        I will try to update the GUI-O design tool and developer manual ASAP.

        Regards,
        kl3m3n

        K 1 Reply Last reply 21 Aug 2023, 18:56 Reply Quote 0
        • K
          kl3m3n @kl3m3n
          last edited by kl3m3n 21 Aug 2023, 18:56

          @kl3m3n said in More information and examples of CB widget:

          I will try to update the GUI-O design tool and developer manual ASAP.

          Done...

          1 Reply Last reply Reply Quote 0
          • V
            VNB
            last edited by 24 Aug 2023, 16:33

            Your changes work great! THANK YOU for the quick response and new parameters in CB

            1 Reply Last reply Reply Quote 0
            2 out of 5
            • First post
              2/5
              Last post