hi there, trying to create GOPs with dynamic sizes, but it seems the size f [vsl] doesn't correspond to the right canvas size in pixels.
Is there a way for me to know which height size I need the slider to be in order to fit ?
For reference, here's both a graph and a slider with width 25 and height of 100, see they mismatch and the slider is higher
[image: Screen Shot 2021-01-24 at 20.40.23.png]
cheers
Sliders are 5pixels taller (wider for h-sliders) for what I assume is aesthetic reasons. Just add 5 to canvas y-size and you are good to go.
On Sun, Jan 24, 2021 at 11:44 PM Alexandre Torres Porres porres@gmail.com wrote:
hi there, trying to create GOPs with dynamic sizes, but it seems the size f [vsl] doesn't correspond to the right canvas size in pixels.
Is there a way for me to know which height size I need the slider to be in order to fit ?
For reference, here's both a graph and a slider with width 25 and height of 100, see they mismatch and the slider is higher
[image: Screen Shot 2021-01-24 at 20.40.23.png]
cheers _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
someone should know a more detailed explanation, but it seems that the center of the slider knob is the reference for the height. The canvas around it is extra, and it's always the same amount of pixels independently on the overall height value. You can play around a bit to find out the canvas size offset, it will always be the same; you'll also need to know for the position offset.
(it would be possible to create new slider guis using data structures, but it's not very efficient)
hi there, trying to create GOPs with dynamic sizes, but it seems the size f [vsl] doesn't correspond to the right canvas size in pixels.
Is there a way for me to know which height size I need the slider to be in order to fit ?
For reference, here's both a graph and a slider with width 25 and height of 100, see they mismatch and the slider is higher
Screen Shot 2021-01-24 at 20.40.23.png
cheers
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list