I have a simple level indicator combined with a couple rectangles to serve as setpoints along the indicator. I'm calculating the relative position of the rectangles and binding to the X position property.
I'm having trouble getting the layout just right.
If I don't enable layout the template stretches fine, but the rectangle's thickness increases too much.
I also tried with just using a linear scale over the whole thing and both the level and linear scale anchored to all edges, but 0 and 100 are not actually at the very edges of the container for that component, so that doesn't work either, when scaling. Progress_SP.zip (5.8 KB)
Easily achievable with a paintable canvas, then you can have any look and feel you want. (Or you could create your own component with a module) but that's quite a bit of overhead.
What are you looking for? It isn't exactly clear to me from your post.
Create a Paintable Canvas component and go into the event scripting. Then drop @lrose' script in. You'll need to add the custom properties he's referencing as well.
Yep. You can change the names as well, obviously, you'll just need to modify the script accordingly. The only thing that is important is that any property that should trigger a repaint should be on the component itself. Otherwise you'll be stuck with a stale graphic because it won't be asked to repaint when you want.
This means that if you want those to be say template parameters, that you need to create both template parameters and custom properties on the component and bind them.