On Don, 2017-02-16 at 15:31 +0100, IOhannes m zmoelnig wrote:
On 2017-02-16 15:18, IOhannes m zmoelnig wrote:
if you want to change the size of the Pd-menu, you have to look somewhere else...
it seems like that slightly too high menu on X11 is just the way tcl/tk creates menus on that platform:
just run this script (using wish): <test.tcl> set m [menu .menubar] . configure -menu $m menu $m.file $m add cascade -menu $m.file -label File </test.tcl>
i'd suggest playing around with that script to find out how to change the menu height, and then port those ideas back to Pd. otoh, the manual [1] doesn't offer any obvious solution, so most likely it is just impossible to change that.
I managed to change height of the menu by changing pd_menus.tcl:38 from:
menu $menubar
to:
menu $menubar -activeborderwidth -2 -borderwidth 0
As (unwanted) side effect, the menu items are spaced more closely to each other. Please have a look at attached screenshot (on the left Pd on Ubuntu, on the right Pd in Wine). Those flags are platform specific and don't have any effect on Windows.
Roman