[PD] Menu bar height (differences across platforms)

Roman Haefeli reduzent at gmail.com
Thu Feb 16 22:55:41 CET 2017


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smaller_menubar.png
Type: image/png
Size: 50452 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20170216/2471f0ba/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20170216/2471f0ba/attachment-0001.sig>


More information about the Pd-list mailing list