More information and examples of CB widget
-
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?
-
@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 -
@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 -
-
@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...
-
Your changes work great! THANK YOU for the quick response and new parameters in CB