Hey list, this is more of a curiosity question.
Sliders used to have 128 of width, and with a default range of 0 to 127 it allowed the slider only to make "integers" as output.
Now, new sliders have 170 of width and the same o to 127 range. Then each step isn't of size 1 anymore... So just for curiosity, why did this change?
If your font size is 8 then it's still 128 pixels by default in width (15 in height), but iemguis now adapt in height and width according to font size, which I think makes sense and follows the height standard of objects that also change according to font size.
Em qui., 15 de dez. de 2022 às 12:59, José de Abreu abreubacelar@gmail.com escreveu:
Hey list, this is more of a curiosity question.
Sliders used to have 128 of width, and with a default range of 0 to 127 it allowed the slider only to make "integers" as output.
Now, new sliders have 170 of width and the same o to 127 range. Then each step isn't of size 1 anymore... So just for curiosity, why did this change? _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
interesting, so what is the relationship between the font size and the width? there is a formula?
i was documenting default values for the appendix idea in the manual, but since each font would change the width/height i will need to change it then (and for other guis too)... and maybe just document the formula for each gui
Em qui., 15 de dez. de 2022 13:22, Alexandre Torres Porres porres@gmail.com escreveu:
If your font size is 8 then it's still 128 pixels by default in width (15 in height), but iemguis now adapt in height and width according to font size, which I think makes sense and follows the height standard of objects that also change according to font size.
Em qui., 15 de dez. de 2022 às 12:59, José de Abreu < abreubacelar@gmail.com> escreveu:
Hey list, this is more of a curiosity question.
Sliders used to have 128 of width, and with a default range of 0 to 127 it allowed the slider only to make "integers" as output.
Now, new sliders have 170 of width and the same o to 127 range. Then each step isn't of size 1 anymore... So just for curiosity, why did this change? _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
On 12/15/22 18:34, José de Abreu wrote:
interesting, so what is the relationship between the font size and the width? there is a formula?
a formula is probably not so interesting.
the logic for the iemgui sizes is, to make them appear at the same size as "normal" objects. that is: a hslider will have the same height as a [float] object (and a vslider will have the same width as the hslider's height).
i don't know why [nbx] is not exactly the same height as [float] or gatom (but then: [float] and [gatom] don't have the same height either).
fgd IOhannes
Em qui., 15 de dez. de 2022 às 18:05, IOhannes m zmölnig zmoelnig@iem.at escreveu:
a formula is probably not so interesting.
agreed